Single Choice
Not Set
QWhat is the output of the above program?
class Num {
Num(double x ){
System.out.println( x ) ;
}
}
public class Test extends Num {
public static void main(String[] args){
Num num = new Num( 2 ) ;
}
}
ID: #2176
Java Constructor and Methods
947 views
Question Info
#2176Q ID
Not SetDifficulty
Java Constructor and MethodsTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Compile time error
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic