There can be a abstract class without abstract methods, but
what is the need to declare a class abstract if it doesn't
contain abstract methods?

Answer Posted / srinidhi a.p

Abstract classes are a type of helper classes. i.e., they
help some other class to complete its job.
So, if there is no methods specified, then the instance or
static variables can serve something for other class which
extends it.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is classpath?

550


Why singleton class is used in java?

575


What is parsing a string?

592


Describe what a thread-local variable is in java?

571


Is constructor inherited?

532






What is pojo class in java?

538


What is r * in math?

554


When will you define a method as static in Java?

574


What is the list interface?

612


What is final keyword in java? Give an example.

578


What language is pass by reference?

574


If you do not want your class to be inherited by any other class. What would you do?

563


Why do we use string?

581


Is main is a keyword?

583


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8623