Submitted by jjadmin on Tue, 08/18/2015 - 08:24
Given:
public abstract class Abstract1 {
public static void main(String[] args) {
System.out.println("I am an abstract class");
}
}
Select 1 option:
A. Class will not compile as abstract classes cannot have main method
B. Class will compile, but will not execute as we cannot execute an abstract class main method
C. Class will compile, run and print "I am an abstract class"
D. Class will compile, run and print nothing