Home / Programming MCQs / JAVA MCQs / Question
M
Q. What will be the result of compiling the following code?~~~public class Test~~~{~~~static int age;~~~public static void main (String args [])~~~{~~~age = age + 1;~~~System.out.println("The age is " + age);~~~}~~~}
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which method waits for a thread to die?
In which process, a local variable has the same name as one of the instance variables?
Which of these keywords is used to define packages in Java?,
The use of final keyword with method definition
Which of the below data type doesn’t support overloaded methods for +,-,* and /?
Which of these classes are used by character streams output operations?
Can you pass values to ENUM constructors in Java?
________ method is called only once during the run time of your applet
Discusssion
Login to discuss.