Multiple Choice Question

Quiz Guidelines

 

QID: 
506
Question: 

Which one of the following class definitions is/are a legal definition of a class that cannot be instantiated?

class Automobile{
abstract void honk(); //(1)
}
abstract class Automobile{
void honk(); //(2)
}
abstract class Automobile{
void honk(){}; //(3)
}
abstract class Automobile{
abstract void honk(){} //(4)
}
abstract class Automobile{
abstract void honk(); //(5)
}

Select 2 options

A. 1
B. 2
C. 3
D. 4
E. 5

Q&A Set: 

Search the Web

Custom Search

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