mohitkumar gupta wrote:please give me a useful link where can i study difference between
== and equals
and know about them in detail.
Simply, where are the methods in java defined? In classes, interfaces. Do primitives have classes? Then how can you invoke methods on them? And have a Google search, you can find a lot.