Home / Programming MCQs / JAVA MCQs / Question
D
Q. What is the output of the following code?
int x = 10; if (x < 5) { System.out.println(“x is less than 5”); } else if (x > 20) { System.out.println(“x is greater than 20”); } else { System.out.println(“x is between 5 and 20”); }
Since x is between 5 and 20, the else block is executed and “x is between 5 and 20” is
You must be Logged in to update hint/solution
What are the valid White Spaces available in Java language?
Which refers to a channel through which data flow from the source to the destination:
Which of these are selection statements in Java?
What will be the output for the below code ?
Java is a ........... language.
What is the variables declared in a class for the use of all methods of the class called?
A leading database connectivity vendor, worked together to produce the ____.
Discusssion
Login to discuss.