Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between SRC and BIN?

Tags:

java

eclipse

What is the difference between the src folder and the bin folder in an Eclipse project? They both seem the same, however, src uses .java files whereas bin uses .class files. Why is this? What difference do they have?

like image 384
L4undry Avatar asked Jan 28 '17 02:01

L4undry


People also ask

What is a src folder for?

The src stands for source. The /src folder comprises of the raw non-minified code. The /src folder is used to store the file with the primary purpose of reading (and/or editing) the code. The /src folder contains all the sources, i.e. the code which is required to be manipulated before it can be used.

What is a src in Java?

Describes the Java™ source tree. When you create an API project, it is set up as a Java project with separate folders for source and class files. The source folder is named src . It contains the Java code of the application.

What does src mean in Eclipse?

The word 'src' is a common abbreviation for 'source' ... e.g. a project's source code. In an Eclipse project 'src' is a common default folder name for a project's source code ... though it depends on how the Eclipse project was created or instantiated.

What is bin folder in Eclipse project?

The bin folder can be ignored. This is nothing more than the folder in which Eclipse stores the . class files generated by compiling your code (which it does automatically; see compiling). The source folder is where all of your Java files will be saved.


1 Answers

src files are your raw, human-readable source code (in this case, .java). bin files are your compiled code (in this case, .class)

like image 169
D.N. Avatar answered Oct 27 '22 09:10

D.N.