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.
Q. Predict the output of following Java program
Q. Which Java method is used to get the version of running java VM?
Q. Which of these methods can be used to output a sting in an applet?
Q. Which of these class contains all the methods present in Math class?
Q. Which of the following is true about servlets?
Q. What are the two floating point notations in Java language?
Q. Which of the following interface is used to declare core methods in java?
Discusssion
Login to discuss.