can you create interface instance ?
Answer Posted / swati
we can't create instance of an interface..
but we can create reference of interface, which can refer
to upcoming object of the class who implements that
interface..
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can we convert integer to string in java?
Write a method to check if input string is palindrome?
What does a void function return?
What is string syntax?
What is the difference between static and non-static variables in java programming?
Why are generics used?
Explain numeric promotion?
What is local declaration?
What is the structure of java?
Is integer immutable in java?
Define nashorn in java8.
Why can't you declare a class as protected?
Why are constructors used?
What is ellipsis in java?
What is append function?