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 / zartab

An abstract class when declared, any method declared inside it becomes implicitly abstract and hence any class extending it have to provide deferred implementation.

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create an object of static class in java?

597


What is an infinite loop?

548


What is instance synchronization?

545


Give me some null interfaces in java?

603


What is slash r?

545






Which is easier .net or java?

647


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

592


Explain the difference between transient and volatile in java?

580


Why array is used in java?

519


Can we have any code between try and catch blocks?

561


What is final int?

533


What are the two ways in which thread can be created?

598


What is an accessor?

1053


What is default size of arraylist in java?

559


What are internal and external variables?

546