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


Please Help Members By Posting Answers For Below Questions

What is an object in java and how is it created?

578


Difference between concurrent hashmap and hashtable and collections

557


Is the empty set a singleton?

527


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).

1600


What restrictions are placed on method overloading?

597






Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

616


How do you sort in descending order in java using collections sort?

486


Difference between ‘is-a’ and ‘has-a’ relationship in java?

533


How many decimal digits is 64 bit?

524


In which order the iterator iterates over collection?

573


What do you know about the garbate collector?

592


In java how do we copy objects?

546


How can constructor chaining be done by using the super keyword?

609


What is a locale?

685


What are class members by default?

653