Objective type questions on abstract class in java and answers
(1)
abstract class Abstract {
public static void main(String[] args){
System.out.print("It is abstract class");
}
static{
System.out.println("Why");
}
}
What will output when you compile and run the above code?
(a) Why
It is abstract class
(b) It is
No comments:
Post a Comment