Multiple Choice Question

Quiz Guidelines

 

QID: 
1
Validated against: 
java8
Question: 

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

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!