Site icon Codeforcoding

The package keyword in Java programming

The package keyword in Java programming

In this tutorial, we will discuss The package keyword in Java programming language

In the Java programming language package  is a keyword use to defined package which use declared a namespace for the Java class. a Java package may be contains a group of similar type of classes(including class elements), interfaces etc..

Declaration

Syntax of package

package package_name;

 

Example

package My_Package

 

There are other Java language keywords that are similar to this keyword

class keyword in Java language

import keyword in Java language

Java packages

 

You might also like

Keywords in Java language

Keywords in C++ language

Keywords in C language

Keywords in Python language

 

The instanceof keyword in Java programming language
Exit mobile version