Can i have abstract class with no abstract methods?

Answer Posted / poonam

Yes, we can have abstract class without abstract method.
Best example is HttpServlet

Is This Answer Correct ?    198 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor chaining and how is it achieved in java?

564


Can keyword be used as identifier?

541


What type of variable is error flag?

578


What is better- service oriented or batch oriented solutions?

1521


Is hashset ordered?

540






What environment variables do I need to set on my machine in order to be able to run java programs?

597


What is lambda programming?

486


Why spring singleton is not thread safe?

558


Can we declare array without size in java?

541


What is the use of a conditional inclusion statement in Java ?

580


What is equlas() and hashcode() contract in java? Where does it used?

600


Is java hashset ordered?

567


Write a program to check for a prime number in java?

552


What is an object in java?

551


What do you mean by of string::valueof expression in java 8?

533