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

What does flagged out mean?

568


In a container there are 5 components. I want to display the all the components names, how will you do that one?

604


What is the difference between an argument and a parameter?

535


How do we access static members in java?

624


What is the difference between a switch statement and an if statement?

513






Give a practical example of singleton class usage?

590


What is the diffrence between inner class and nested class?

558


What are variable names?

526


What are the types of methodology?

508


What does replaceall do in java?

484


Differences between C and Java?

613


How to create com object in Java?

645


Is array synchronized in java?

548


What are desktop procedures?

556


What string is utf8?

543