- Source is located in src directory and build result is located in bin directory
- In source code you don’t have to located the source file following package. For example, you have Hello.java, you don’t have to create directory abc and put the java source code it it when your package name is abc
- After the compilation, the created class is located in bin/abc/Hello.class,
- When executing the class in the package you need to specify the package with ‘.’, for example, java abc.Hello for executing it.
MacJournal
No comments:
Post a Comment