suppose we have an interface & that interface contains five
methods. if a class implements that interface then we have
to bound that to give tha definition of all five methods in
that class. If we declare that class as abstract then can
we call only two methods to give the deinition of that
method & i don't want to give the definition of all the
methods? can it possible

Answer Posted / suresh chand

yes,it is possible that abstract class implements zero,
one,two,three or four interface methods but not all i.e
five. After this concrete class which extends the abstract
class, implements the remaining methods.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out benefits of object oriented programming language?

487


Explain the JDB in depth & command line.

572


How does finally block differ from finalize() method?

589


Is binary a low level language?

513


Can we extend singleton class?

529






What is memory leak and how does java handle it?

525


Can an interface be final?

550


Define jit compiler?

662


What are the important features of Java 10 release?

511


Do you need to import math in java?

563


What are the parts of a method?

538


List the three steps for creating an object for a class?

517


Where are local variables stored?

512


What is computer compiler?

536


How can you add and remove nodes in jtree?

614