Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of the Java program with Enhanced FOR loop below?
String countries[] = {"BRAZIL", "CHILE", "SYDNEY"}; int i=0; for(String str: countries) { if(i<2) ; else break; System.out.print(str + ","); i++; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of these methods are used to register a keyboard event listener?
_________ Keyword is used to invoke the current object.
What is the output of the below Java program with two classes?
Java supports RMI, RMI Stands for?
Which of those isn’t an interface within the Collections Framework?
Which keyword is used by the method to refer to the object that invoked it?
Which of these is the correct method to create an array in java?
In which process, a local variable has the same name as one of the instance variables?
Discusssion
Login to discuss.