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

Explain an algorithm to find depth of a binary tree.

559


Write java program to reverse string without using api?

564


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

769


Why java is considered dynamic?

761


What are the parts of methodology?

553






What is the maximum size of array in java?

528


What is protected in java?

536


Is void a wrapper class?

541


What types of index data structures can you have in java?

624


What do you understand by casting in java language?

585


What is flag in java?

542


What is file in java?

566


How an object is serialized in java?

542


What is the purpose of the file class in java programming?

535


How can I right-justify a string?

635