can you create interface instance ?

Answer Posted / arvind panwar

No, we can't create an instance of an interface but
reference variable can hold reference to object of its sub
class.

Is This Answer Correct ?    46 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unicode with example?

804


Can you sort a string in java?

687


What is difference between throw and throws ?

860


Explain the pointers in Java?

809


What are the difference between string, string builder, and string buffer in java?

843


Which variables are stored in heap?

764


How to calculate the length of a singly linked list in java?

776


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2576


What is the purpose of garbage collection in java?

843


What is variable argument in java?

768


Is passing by reference faster?

757


What is the purpose of extern variable?

755


What is local declaration?

701


Explain the difference between private, public, package and protected in java?

798


What is the default execution method in java?

870