Can i have abstract class with no abstract methods?
Answer Posted / darkeye
I certainly agree with Manish Kushwaha You can have abstract class without any abstract method but if you have a single abstract method you are suppose to make that class abstract
This is what Sun says :
" An abstract class is a class that is declared abstract—it may or may not include abstract methods" (http://java.sun.com/docs/books/tutorial/java/IandI/abstract.html)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the three types of design patterns?
Why do we need hashset in java?
What is difference between string and stringbuffer?
Which command from the jdk compiles a java program?
Does java set allow duplicates?
Does google use java?
How does split work in java?
Can an interface have a constructor?
Why can't we override private static methods?
What is array sorting in java?
How would you use Bubble Sort to sort the number of elements?
what is inner class in java?
What is update method called?
How would you format a date in java? I.e. In the ddmmyyy format?
Can we sort a map in java?