Can i have abstract class with no abstract methods?

Answer Posted / manoj

Yes, we can have a abstract class without a abstract method .
But in earlier version like jdk 1.1,it was necessary to have at least one abstract method inside abstract class then latter this restriction was removed by other versions.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by overloading?

588


Can a variable be local and static at the same time?

546


What is the exception hierarchy in java?

488


What is parseint?

540


What is the difference between throw and throws keywords?

576






What is operator overloading. Is it is supported in java?

524


What are the difference between string, string builder, and string buffer in java?

555


Can we use synchronized block for primitives?

606


What are the types of relation?

573


when you will synchronize a piece of your code? : Java thread

529


how to handle exceptions in ejb?

1875


Can we declare main () method as non static?

524


Which is easier netbeans or eclipse?

612


What are synchronized methods and synchronized statements in java programming?

574


What is difference overloading and overriding?

579