Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of the below Java code?
int score=1; for(; true; score++) { System.out.print(score +","); if(score > 3) break; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What can a method do with a checked exception?
Identify what can directly access and change the value of the variable res.
Which of these Exceptions is thrown by remote method?
What is the default character literal value assigned to a char variable in Java?
Which of these is return type of getAddress method of DatagramPacket class?
What will be the output of the following code –
Which statement about a valid .java file is true?
What is the purpose of this bit of code?~~~void init()~~~{~~~}
Discusssion
Login to discuss.