Alexander Shrago wrote:
Guilherme Bazilio wrote:
Java does not support multiple inheritance! So answer D is false!
There are no problem for an interface to extend many interfaces. Check it!
Seetharaman Venkatasamy wrote:
saloni jhanwar wrote:
Seetharaman Venkatasamy wrote:
In overloading concept why we are using same name?
technically method name is its signature. signature = method name and the parameter list (ordered)
gurpeet singh wrote:
had you created strings "literally" then you would have got true in that case.
pavithra srinivasan wrote:
you can throw same exceptions or narrower once or runtime exceptions.. or not throw any exceptions at all but when you don't throw(declare or handle) exception.. then calling method i.e, main method must handle it!
Mumtaz Khan wrote:
This will give compile time error as exception has to be handled or the main method should declare throws clause.
Maduranga Liyanage wrote:
Yes. In this context, it doesn;t matter if the method was static or not. The behavior is the same.