Can we have a abstract class withought any method? What is a
purspose of this?

Answers were Sorted based on User's Feedback



Can we have a abstract class withought any method? What is a purspose of this?..

Answer / malli

Yes,we can able to keep abstract class without any any methods.

purpose: Abstract class support for all unimplemented
methods (or) all concrete methods (or) some concrete methods
and abstract methods. so based on requirement we can use
abstract class.

Is This Answer Correct ?    1 Yes 0 No

Can we have a abstract class withought any method? What is a purspose of this?..

Answer / sneha

Ya we can have an abstract class withought any method...It helps to prevent it from being instantiated...

Is This Answer Correct ?    2 Yes 2 No

Can we have a abstract class withought any method? What is a purspose of this?..

Answer / sourav kumar verma

it may or may not include abstract methods. Abstract classes
cannot be instantiated, but they can be subclassed.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

How multipleInheritance is possible in java?

18 Answers   Satyam,


What are the differences between path and classpath variables?

0 Answers  


Can you access non static variable in static context?

0 Answers  


What is string in java with example?

0 Answers  


Is there any difference between nested classes and inner classes?

0 Answers  






How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com

2 Answers  


How to add and remove nodes in Jtree?

1 Answers  


Explain parallel processing in java8?

0 Answers  


write a progam hashmap & hashtable?

2 Answers   IBM,


Write a program to reverse array in place?

0 Answers  


How many inner classes can a class have?

0 Answers  


What is r in java?

0 Answers  


Categories