Java Packages

0.0(0)
studied byStudied by 0 people
0.0(0)
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:01 AM on 1/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

Java Packages

A group of similar types of classes, interfaces and sub-packages.

2
New cards

Built-in Package
User-defined Package

Package in java can be categorized in two form, ________ and __________.

3
New cards

java
lang
awt
javax
swing
net
io
util

Some example of built-in packages

4
New cards

Java package is used to categorize the classes and interfaces so that they can be easily maintained.
Java package provides access protection.
Java package removes naming collision.

Advantages of Java Package

5
New cards

Folder in a file directory

A package in Java is used to group related classes. Think of it as a ___________. We use packages to avoid name conflicts, and to write a better maintainable code.

6
New cards

Built-in Packages

Packages from the Java API.

7
New cards

User-defined Packages

Create your own package.

8
New cards

Java API

A library of prewritten classes, that are free to use, included in the Java Development Environment

9
New cards

Packages
Classes

Java API is divided into ______ and _____. Meaning you can either import a single class (along with its methods and attributes), or a whole package that contain all the classes that belong to the specified package.

10
New cards
import package.name.*;

Syntax when importing the whole package

11
New cards
import package.name.Class;

Syntax when importing a single class.

12
New cards

Package

import java.util.Scanner;

In the example, java.util is a ______, while Scanner is a class of the java.util package.

13
New cards

Class

import java.util.Scanner;

In the example, java.util is a package, while Scanner is a _____ of the java.util package.

14
New cards

Java Swing Tutorial

A part of Java Foundation Classes (JFC) that is used to create window-based applications. It is built on the top of AWT (Abstract Windowing Toolkit) API and entirely written in java.

15
New cards

Abstract Windowing Toolkit

AWT

16
New cards

Java Foundation Classes

JFC

17
New cards

Java Swing

Provides platform-independent and lightweight components.

18
New cards

JButton
JTextField
JTextArea
JRadioButton
JCheckbox
JMenu
JColorChooser

The javax.swing package provides classes for java swing API such as …..

19
New cards

Association
Inheritance

Two ways in creating a frame using Java Swing

20
New cards

Association

By creating the object of Frame class.

21
New cards

Inheritance

By extending Frame class.