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 prefix used to represent Binary literals in Java?
Which tag is used to execute java source code in JSP?
What is the immediate super class of Applet Class
When does Exceptions in Java arises in code sequence?
Multithreading in java is ___.
Swing is a ___________ framework
What software compiles a Java Program?
Discusssion
Login to discuss.