Single Choice
Not Set
QWhat is the output of the following program?
public class Test{
static int x = 10 ;
public static void main(String[] a){
Test test = new Test( ) ;
Test test1 = new Test( ) ;
test.x += 1 ;
System.out.println( test.x + test1.x ) ;
}
}
ID: #2014
Java Data Types and Variables - MCQ
1,070 views
Question Info
#2014Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
22
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic