DEVFYI - Developer Resource - FYI

What is the output of x > y? a:b = p*q when x=1,y=2,p=3,q=4?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

133. What is the output of x > y? a:b = p*q when x=1,y=2,p=3,q=4?

When this kind of question has been asked, find the problems you think is necessary to ask back before you give an answer. Ask if variables a and b have been declared or initialized. If the answer is yes. You can say that the syntax is wrong. If the statement is rewritten as: x

(Continued on next question...)

Other Interview Questions