Redirected
recategorized
10,864 views
2 votes
2 votes

Which of the following statements is correct?

  1. Every class containing abstract method must not be declared abstract
  2. Abstract class cannot be directly initiated with new operator
  3. Abstract class cannot be initiated
  4. Abstract class contains definition of implementations
recategorized

3 Answers

1 votes
1 votes

C is true and hence the ans Abstract classes may not be instantiated

Option A false because 

A method that is declared as abstract and does not have implementation is known as abstract method.

Abstract classes are classes that contain one or more abstract methods.

Option D is false because :-

Anabstract method is a method that is declared, but contains no implementation.

Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

Option B is not false either but A seems to be more appropriate

0 votes
0 votes
answer :b

abstract class cannot create objects

therefore they cannot be accessed directly using the new operator
0 votes
0 votes

Ans: B and C both are correct.

  1. Abstract class cannot be directly initiated with new operator
  2. Abstract class cannot be initiated
Answer:

Related questions

2 votes
2 votes
1 answer
2
go_editor asked Aug 20, 2016
2,993 views
It is possible to define a class within a class termed as nested class. There are __ types of nested classes2345
2 votes
2 votes
3 answers
4
makhdoom ghaya asked Oct 4, 2016
2,594 views
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous