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
Can we access the non-final local variable, inside the local inner class?
What happens if constructor is private?
Is set ordered?
How is garbage collection controlled?
Can an interface extend another interface?
What is the purpose of static keyword in java?
Why java is considered dynamic?
What is the default value of float and double datatype in java?
What is a java list?
What is protected access modifier?
What is tree node in java?
What is ctrl m character?
Name few java 8 annotations ?
How do you write a scanner class in java?
Why array is used in java?