When I call as instance method of a class as follows :
object_name.function_name(); how the compiler knows that the "function_name" has to be called for that "object_name" behind the scenes ?
What is meant by String Pool ?
What is difference between the following declarations :
String s="hello";
String s=new String("hello");
Is there any difference between the Storing of this two strings by JVM ?
Should there be any specific order in which I should write the following :
public static void main() ?
In other words, can I re-shuffle public,static,void in any order ?
Why or Why not ?