Answer Posted / dhawal
answer no 1. is correct programatically but actually
instantiates means obtain the behavier of object we can do
this only by creating object of class ,object has state and
behaviour, in answer 1,we transfer state first and then
write behaviour in the class,then instantiate that class ie
like dynamic method dispatch.means therotically we can not
instantiate Interfaces
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can we declare main () method as non static?
Do you know why doesn't the java library use a randomized version of quicksort?
What is the difference between hashset and treeset in java?
Are arrays dynamic in java?
What is the point of java?
How do you declare a string variable?
How do you insert a line break?
What the difference is between execute, execute Query, execute Update?
Is main a keyword in java?
What is final keyword?
Explain static nested classes ?
Why can't we make a class private in java?
What is difference between path and classpath in java?
How do you write a conditional statement?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread