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

Does variable declaration allocate memory?

789


Does importing a package imports its sub-packages as well in java?

753


Explain jdk, jre and jvm?

765


What is a text string?

852


How to stop a thread in java? Explain about sleep () method in a thread?

802


What makes a function well defined?

767


How does compareto method work?

725


What is strings in java?

797


What do you mean by JVM?

797


What are different exception types exceptions available in java ?

743


How do you replace a string in java?

754


Which collection does not allow duplicates in java?

709


Is ++ operator is thread safe in java?

699


What is an interface in java? Explain

820


What is math exp in java?

777