package keyword in java
- 17th Aug 2017
- 0
- 2815
- package keyword in java package keyword in java with an example significance of package keyword in java
The “package” keyword specifies the Java package in which the classes declared in a Java source file reside. Example package com.mycompany.services; public class MyCompanyService { } package com.mycompany.services; public class MyCompanyService { } In the above example, the source file MyCompanyService.java must be placed under the package /com/mycompany/services Rules regarding the package statement A […]