What is the purpose of the build path also called the classp
What is the purpose of the build path (also called the classpath) in Java?
It tells the compiler where to place .class files when it compiles them.
It tells the compiler where to find supporting .class files that it might need to import.
It tells the compiler where to copy .java files during the compile process.
It helps the compiler determine where to write javadoc documentation.
Solution
Purpose of the build path in Java :
1) It allows the compiler to discover the dependent classes to build your project.
2) It tells the compiler where to place .class files when it compiles them.
3) Java build path includes all of the source files and the Java libraries that are required to compile the application.
4) It tells the compiler where to find supporting .class files that it might need to import.
5) Every Java project has its own build path that specifies all dependencies (libraries ,JAR\'s , other .class files etc) required to compile the project.
6) It tells the compiler where to copy .java files during the compile process.
7) It helps the compiler determine where to write javadoc documentation.
