String s = "Hello"; means one object with value "Hello" will be created in the heap and reference variable s will refer to the object.but whenString s1 = s+"World";w...
Very tricky question.Asked me in Oracle interview for 4 years level of expHere is the answer: When JVM see the code where two three string objects has been added with + operator then it is using the S...
Classpath: The CLASSPATH is an environment variable that tells the Java compiler javac.exe where to look for class files to import or java.exe where to find class files to interpret.Path: The PAT...
CLASSPATH points to all the class files in your program, whereas path contains the location of all the executibles that your program needs forsuccessful run