Home / Programming MCQs / JAVA MCQs / Question
M
Q. Determine output:
class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the output of this Java snippet? int a = 0b111; System.out.println(a);
Minimum threads in a program are
What is the output of the following code snippet?
Which of the following sorts the elements were inserted?
Which one of the following annotations is not used in Hibernate?
Constructors have the same name as the ________
What is method overriding in Java?
Which file is used to specify the packaging cycle?
The term _____________ refers to a class's direct ancestor or to any of its ascendant.~~~classes.
Discusssion
Login to discuss.