can you create interface instance ?
Answer Posted / bibhuti
i am bit confused with this one.
If it is referring to an anonymous class then if i am changing like below then why it is not working?
public static void main(String[] args) {
Object t = new TestOne() {
public void wish() {
System.out.println("output: hello how r u");
}
};
t.wish();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is set ordered?
What is methodological theory?
What is array command?
Who is founder of java?
Why are there no global variables in java?
Convert a BST into a DLL and DLL to BST in place.
Why is java multithreaded?
Where will it be used?
Explain try and catch keywords in java?
Define locale.
What is arraylist e in java?
What do you mean by mnemonics?
why java uses class level type casting ?
Which class is used by server applications to obtain a port and listen for client requests?
What is struts in java?