There can be a abstract class without abstract methods, but
what is the need to declare a class abstract if it doesn't
contain abstract methods?

Answer Posted / keerthi

It is used prevent creating object of abstract class.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What interface is extended by awt event listeners?

595


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

599


What is replaceall in java?

545


what is the purpose of "virtual"?

570


What are the main differences between the java platform and other platforms?

531






How do I get the | symbol on my keyboard?

595


What does microservices mean?

535


If an object is garbage collected, can it become reachable again?

545


Is it possible to write a regular expression to check if string is a number?

545


What is the difference between an array and an array list?

505


Can you use abstract and final both with a method?

573


What are the three parts of a lambda expression?

538


Explain the polymorphism principle?

583


What is merge sort in java?

585


Are arrays classes in java?

535