did interface can implementation method ? i know its not
possible but my interviewer said its possible ..but how..?
any one have idea ???

Answer Posted / keerthi

method implementation is impossible in interface , method
declaration only possible in interface.

In abstract class method declaration or implementation
possile.

If we implement methods in iterface what is purpose of
abstract concepts.

The interviewer asked for checking whether your confident
or not

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you communicate between two applets?

623


What is a lock or purpose of locks in java?

579


What is the meaning of variable in research?

549


What is dynamic binding(late binding)?

578


Which one of the following suits the description of a string better: derived or primitive?

499






what is the difference between Object Based Language and Object Oriented Language?

591


Can we compare two strings in java?

550


Explain the init method?

531


How can we create objects if we make the constructor private ?

532


What is an off by one error in java?

489


What is finally block?

557


How can constructor chaining be done by using the super keyword?

607


What are the two ways of implementing multi-threading in java?

804


How to instantiate static nested classes in java?

552


Write the algorithm to check the number non-leaf nodes in a tree.

576