Is it compulsory to have atleast one abstract method in
abstract class?

Answer Posted / jag

no we can have all concrete methods in abstract class
example:
all the methods in javax.servlet.HttpServlet class are
concrete but it is abstract class

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a source file contain more than one class declaration?

725


What is difference between static variable and global variable?

784


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1837


Does printwriter create a file?

745


What are functions in java?

714


Why singleton is not thread safe?

778


What are three advantages of using functions?

763


Why collection doesn’t extend cloneable and serializable interfaces?

879


What is an array length?

692


What is the difference between break and continue statements?

798


What do you know about the garbage collector?

868


What is the use of isempty in java?

770


Can a class be final?

706


What type of variable is gender?

753


How can we create objects if we make the constructor private ?

748