Answer Posted / subhash
No.We cannot create instance for interface.But we can
create reference to an interface.We can implement the
interface by creating sub class(implementation class) and
creat instance to the sub class, then you can create
reference to the interface by assigning instance of sub
class to the interface reference variable.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Can java list contain duplicates?
What is Applet Stub Interface ?
Is void a type?
What is the function of java?
What value is a variable of the string type automatically initialized?
What is the use of arraylist in java?
What is a boolean flag in java?
What is compareto () in java?
Is sizeof a preprocessor?
What is string variable?
What are three advantages of using functions?
Can we define a package statement after the import statement in java?
What is the use of arrays tostring () in java?
How can we run a java program without making any object?
Explain what are final variable in java?