What we have to do, when we don't want to implement all
methods of an interface?

Answer Posted / somasundar m

We have to declare that class an abstract class by
declaring that particular unimplemented methods as abstract
method. And you can not create an instance for this class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain thread life cycle in java?

577


What is the purpose of the enableevents() method?

571


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

525


How do you delete a list in java?

522


Explain the difference between jdk, jre, and jvm?

582






What is the maximum size of array in java?

504


What do you mean by an object in java?

622


Can we use a switch statement with strings?

540


What is the purpose of the strictfp keyword?

600


what is deadlock? : Java thread

517


What is a null point?

550


What do you mean by exception handling in Java?

652


When object is created and destroyed?

630


What is size () in java?

534


What is style and indentation?

537