Java Keyword Package

The reserved keyword package is a group or bundle of similar classes and interfaces. In order to make types easier to find, avoid pesky naming conflicts, and limit control access, Java programmers can group related types into packages.

A Java package is a grouping of related types that provide access protection and name space management. When we mention types, we are referring to: classes, interfaces, enumerations, and annotation types. The package statement must be listed as the first line of your Java source file.

//JavaCodeDepot Sample 

public class JavaCodeDepotAwesomeClass {

    //Awesome guts inside my class

Given the above code snippet, will need to be included in the following directory or folder:


The complete list of Java reserved keywords contains a total of 50 keywords and 3 literal words that are unable to be used as variable names.

Add a Comment

Your email address will not be published. Required fields are marked *