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

What is the difference between yield() and sleep()?

785


What is stack explain?

705


Write a method that will remove given character from the string?

797


What do you mean by boolean?

835


Why is java multithreaded?

754


What is substring 1 in java?

801


Is null keyword in java?

742


what is synchronization? : Java thread

814


How we can run a jar file through command prompt in java?

740


Which method returns the length of a string?

809


Tell me are there implementations for sorting and searching in the java libarary?

835


What are different types of references?

764


What are the advantages of user defined functions?

769


How can we pass argument to a function by reference instead of pass by value?

846


What is a boolean expression in java?

785