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
Which is a valid identifier?
Define how does a try statement determine which catch clause should be used to handle an exception?
Is static variable stored in heap?
What is difference between length and length() method in java ?
What are features of java?
What is command line used for?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is a numeric string?
How would you format a date in java? I.e. In the ddmmyyy format?
Is zero a natural number?
Similarity and difference between static block and static method ?
How many bits is a word?
When do we need to use internal iteration? When do we need to use external iteration?
What is a parameter in java?
From the two, which would be easier to write: synchronization code for ten threads or two threads?