[Java] Package

Back-End/Java_1 2016. 9. 12. 14:48
donaricano-btn

 Package

- Package is a group of similar types of classes, interface and sub-packages

- built-in package(java, lang, awt, javax...) and user-defined package


1. Advantage of Java Package

- Java package is used to categorize the classes and interface so that they can be easily maintained

- It provides access protection

- It removes naming collision

2. How to compile and run java package

1) compile


2) run

 


'Back-End > Java_1' 카테고리의 다른 글

[Java] Call by value  (0) 2016.09.13
[Java] Encapsulation  (0) 2016.09.12
[Java] Interface  (0) 2016.09.12
[Java] Abstract class  (0) 2016.09.12
[Java] Instanceof  (0) 2016.09.09
블로그 이미지

리딩리드

,