can you create interface instance ?
Answer Posted / rushi shah
The above code given by Udaykiran gives the following error even before it is compiled:
Can not instantiate the type 'Test' type.
Which means that we can not create any object of interface.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What state does a thread enter when it terminates its processing in java programming?
What is the difference between this() and super() in java?
How will you reverse a singly-link list?
What is a singleton in genetics?
What is meant by JVM? Is JVM platform independent or not?
What is purpose of applet programming?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
How do you override a method in java?
Explain the selection sort algorithm?
How strings are created in java?
what is bmg file and how to create that files?what will it contailn?
What is generic type?
What is the difference between the ">>" and " >>>" operators in java?
What is the use of isempty in java?
How does linkedhashmap work in java?