Can i have abstract class with no abstract methods?

Answer Posted / mandeswara rao

yes, we can.To prevent a class from directly creating
objects, better declare them as abstract classes.
Eg: HttpServlet

Is This Answer Correct ?    37 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain wait(), notify() and notifyall() methods of object class ?

583


What access modifiers can be used for methods?

551


what is the constructor and how many types of constructors are used in java?

531


Can you declare a private method as static?

686


Is map ordered in java?

527






What is Applet Stub Interface ?

1959


What is comparator in java?

545


How concurrent hashmap works?

602


When will you define a method as static?

546


What is substring 1 in java?

581


How to sort an unsorted array in java?

603


Why do we need data structure in java?

562


why java uses class level type casting ?

2245


What is getclass () getname () in java?

669


What is difference between ++ I and I ++ in java?

522