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 a singleton class? Give a practical example of its usage.

840


Can we make constructors static?

964


What is the length of a string?

754


Does substring create a new object?

766


Difference between string, stringbuffer and stringbuilder?

824


Name few "optional" classes introduced with java 8 ?

879


what are different ways in which a thread can enter the waiting state? : Java thread

722


Give me example of derived data types.

849


When would you use a static class?

767


What are generic methods?

736


What is string substring?

812


What are scriptlets?

845


Is string is a keyword in java?

750


What is the full meaning of java?

788


What is the size of int?

856