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
Which is easier netbeans or eclipse?
Can private class be extended java?
How will you call an Applet using Java Script Function?
What is the benefit of singleton pattern?
Explain about complier design(phases)
What happens if main method is not static?
What is the purpose of the enableevents() method in java programming?
Can we create a class inside a class in java?
What is run time allocation?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Which is illegal identifier in java?
What is null data type?
How do you declare an array in java?
What is a function easy definition?