can you create interface instance ?
Answer Posted / anil
That it is not creating the instance of the interface. The
class which is there on the right side is called anonymas
call.
It is correct when the statement is as below
Test t =new Test(); he should give the ';' after the
paranthesis not after the '}'.
Please refer anonymas classes for other information how
they works...
Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
Where we write javascript code in html page?
How do you compare objects in java?
What is the scope or life time of instance variables?
how come we know the object is no more used in the class?
How will you invoke any external process in java?
What is the use of toarray () in java?
What is serialization in java?
What is singletonlist in java?
What is the benefit of singleton pattern?
What is the difference between JDBC 1.0 and JDBC 2.0?
Explain notify() method of object class ?
What is function overriding and overloading in java?
Which keyword specify that a variable is effectively final ?
Explain the scope of a variable.
Is java util regex pattern thread safe?