What is CLASSPATH variable? What is default classpath? - Java

What is CLASSPATH variable? What is default classpath?

CLASSPATH is an environment variable that communicates JVM and other java applications for finding the java language class libraries, including the developer’s class library.

It is set by setenv command like
setenv CLASSPATH path1:class2 ….

The class libraries of java language that the CLASSPATH points to are JDK classes in lib directory and or any user defined classes.

The default CLASSPATH is .
:bin/../classes:bin/../lib/classes.zip


Explain how to convert any Java Object into byte array? - Java
1. Create an object of ByteArrayOutputStream class. ByteArrayOutputStream bStream = new ByteArrayOutputStream();..
Explain how to convert bytes[] into File object - Java
1. Create a File object. File file = new File(“path and file name here”);...
JavaSpaces technology vs. database - Java
Java spaces is a technology with powerful high-level tool for the development of distributed and collaborative applications. A simple API is provided based on the network shared space for developing sophisticated distributed applications...
Post your comment