Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of the Java program?
String name1="FOX", name2="DOG"; if(name1 == "FOX") System.out.print("FOX "); System.out.println("GOOD"); if(name2 == "CAT") System.out.println("DINO");
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
The keyword used to create a constant variable
Choose the correct syntax of an Enhanced FOR loop in Java below.
____ operators which concatenates two strings.
What will be the output of following java code?
Which Java method is used to detect the OS in which Java program is being run?
Which one of the following is not an annotation used by Junit with Junit4?
Can we perform file handling in Java by Java I/O API?
A special type of method that is used to initialize an object is called________.
What is the correct JavaScript syntax to insert a comment that has more than one line?
Discusssion
Login to discuss.