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

Why does java not support pointers?

547


What are the important features of Java 11 release?

576


What is a null class?

566


Is java se open source?

562


Is map sorted in java?

564






Why inputstreamreader is used in java?

541


Write a program to search a number in the given list of numbers.

625


Write a function for palindrome and factorial and explain?

654


What is the maximum length of a url?

506


What is Java Shutdown Hook?

608


What is string data?

549


What is a boolean expression in java?

528


Are private methods final?

480


What are recursive functions? Give some examples?

612


What’s the difference between constructors and other methods?

527