Significance of Classpath environment variables

Explain the significance of Classpath environment variables.

- It is the list of directories which is used by JVM to find a class.

- It tells the JVM and other applications related with the Java tools where to find the class libraries, including user-defined class libraries.

- It is a set with 'SET' command.

- Syntax:
SET CLASSPATH=path1;path2...

- Using 'SET' command DOS prompt changes the current value of CLASSPATH.
What is a Garbage collector?
What is a Garbage collector? - Garbage collector cleans up objects which are no longer used. It is the thread running as part of JVM......
What is Interning?
What is Interning? - Interning is the process of converting duplicated strings to shared ones. Interned Strings avoid duplicate......
String vs. StringBuffer class
String vs. StringBuffer class - String class is immutable which means it can't be modified once declared.....
Post your comment