bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java package Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java package Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ mypack;
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The package keyword creates a package.
Definition and Usage
Java package Keyword

❮ Java Keywords

package mypack;
class MyPackageClass {
 public static void main(String[] args) {
 System.out.println("This is my package!");
 }
}

Definition and Usage

The package keyword creates a package.

Related Pages

Read more about packages in our Java Packages Tutorial .

❮ Java Keywords

Previous

Java new Keyword

Next

Java private Keyword