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
What is meant by overloading?
How many types of flags are there?
Difference between ‘>>’ and ‘>>>’ operators in java?
Can we use return in constructor?
Can we have two main methods in a java class?
How to calculate the length of a singly linked list in java?
What is a java list?
What does \ mean in regex?
How do you sort in java?
What is the maximum size of byte array in java?
What is final modifier?
What is ternary operator in java?
What is a singleton in genetics?
What is %02d?
what is thread? What are the high-level thread states? : Java thread