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
Be the first to start discuss.
What is the default character literal value assigned to a char variable in Java?
AWT stands for_________________.
Which keyword in java is used for exception handling?
What is the priority of the Garbage collector thread of jdk?
What will be the output of the following program?
Every method of a ________ is implicitly final.
Which of the following is not a class?
Which of these method of httpd class is used to write UrlCacheEntry object intolocal disk?
Discusssion
Login to discuss.