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 is an object in java and how is it created?
Difference between concurrent hashmap and hashtable and collections
Is the empty set a singleton?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What restrictions are placed on method overloading?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
How do you sort in descending order in java using collections sort?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
How many decimal digits is 64 bit?
In which order the iterator iterates over collection?
What do you know about the garbate collector?
In java how do we copy objects?
How can constructor chaining be done by using the super keyword?
What is a locale?
What are class members by default?