Can we instantiate Interfaces?

Answer Posted / divya

You can only create a reference of an interface but cannot
instantiate.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the term singleton?

580


Can a class be private or protected in java?

547


What is the difference between error and an exception?

567


How do singleton patterns work?

513


What is arraylist class in java?

507






What is the difference between abstraction and encapsulation?

558


Where are the local variables stored?

513


How do you declare an array in java?

512


Which is a valid identifier?

542


Write a program to check string is palindrome without using loop?

561


Can we have more than one package statement in source file ?

583


How do you remove an object from an arraylist in java?

459


What is tcp ip in java?

582


Is sizeof a preprocessor?

539


What are structs in java?

567