Home / Programming MCQs / JAVA MCQs / Question
R
Q. Predict the output of following Java program
class T { int t = 20; T() { t = 40; } } class Main { public static void main(String args[]) { T t1 = new T(); System.out.println(t1.t); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the entry point of a program in Java?
How is the dynamic interception of requests and responses to transform the information done?
What is the value of "age" in the below Java program with a DO-WHILE loop?
Creating an object from a class is also called ____.
Which of the following is not a directive in JSP?
Which method returns the interrupted flag after that it sets the flag to false if it is true?
Which of these operators can skip evaluating right hand operand?.
Discusssion
Login to discuss.