recategorized
11,091 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

3.4k
views
1 answers
2 votes
go_editor asked Aug 20, 2016
3,386 views
When one object reference variable is assigned to another object reference variable thena copy of the object is createda copy of the reference is ... illegal to assign one object reference variable to another object reference variable
3.1k
views
1 answers
2 votes
go_editor asked Aug 20, 2016
3,083 views
It is possible to define a class within a class termed as nested class. There are __ types of nested classes2345
2.6k
views
1 answers
1 votes
makhdoom ghaya asked Oct 1, 2016
2,551 views
Which of the following is not a correct statement ?Every class containing abstract method must be declared abstract.Abstract class can directly be ... can be initiated.Abstract class does not contain any definition of implementation.
2.8k
views
3 answers
2 votes
makhdoom ghaya asked Oct 4, 2016
2,752 views
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous