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
Does constructor return any value?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is data string?
What are the differences between heap and stack memory?
What is oop in java?
What environment variables are required to be set on a machine in order to run Java programs?
What's the default access specifier for variables and methods of a class?
What do you mean by JVM?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What initialize variables?
How do you convert string to int in java?
What is the multi-catch block in java?
Which graphs are functions?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is threaded programming and when is it used? : Java thread