search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
2 votes
1.5k views

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
in Java
recategorized
1.5k views

2 Answers

1 vote

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
option B & C both are correct.

Abstract Class can directly  initiated with "new " operator.

Abstract class  can be initiated.
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

Related questions

2 votes
1 answer
1
1.4k views
When one object reference variable is assigned to another object reference variable then a copy of the object is created a copy of the reference is created a copy of the reference is not created It is illegal to assign one object reference variable to another object reference variable
asked Aug 20, 2016 in Object Oriented Programming jothee 1.4k views
2 votes
1 answer
2
1.3k views
It is possible to define a class within a class termed as nested class. There are __ types of nested classes 2 3 4 5
asked Aug 20, 2016 in Object Oriented Programming jothee 1.3k views
1 vote
1 answer
3
285 views
Which of the following is not a correct statement ? Every class containing abstract method must be declared abstract. Abstract class can directly be initiated with ‘new’ operator. Abstract class can be initiated. Abstract class does not contain any definition of implementation.
asked Oct 1, 2016 in Java makhdoom ghaya 285 views
0 votes
3 answers
4
2.4k views
Consider the following JAVA program: public class First { public static int CBSE (int x) { if (x<100) x = CBSE(x+10); return(x-1); } public static void main (String[] args) { System.out.print(First.CBSE(60)); } } What does this program print? 59 95 69 99
asked Jan 31, 2017 in Java jothee 2.4k views
...