◀
Previous
Slide 3.8: Java built-in packages
Slide 3.10: Java
java.lang
package
Home
Print version
▶
Next
Java Packages (Cont.)
Built-in Packages (Cont.)
Some of the commonly used built-in packages are
java
.
math
Provides classes for performing arbitrary-precision integer arithmetic (
BigInteger
) and arbitrary-precision decimal arithmetic (
BigDecimal
).
java
.
awt
The AWT (Abstract Windowing Toolkit) package contains classes for implementing the components for graphical user interfaces like buttons.
JavaFX
.*
JavaFX is a GUI toolkit for Java. JavaFX makes it easier to create desktop applications and games in Java.
java
.
io
Contains classes for supporting input/output operations.
java
.
lang
Contains language support classes (e.g., classes defining primitive data types and math operations). This package is automatically imported.
java
.
net
Contains classes for supporting networking operations or client-server applications.
java
.
sql
This package is used for retrieving the data from data base and performing various operations on data base.
java
.
util
Contains miscellaneous utility classes which implement data structures like linked list and dictionary, and provide a string tokenizer, a random-number generator, a bit array, etc.
The complete list can be found at Oracles website:
https://docs.oracle.com/javase/8/docs/api/
.
Review: Java Packages
Which Java package is imported by default?
java.io
java.lang
java.net
java.util
Result:
◀
Previous
Slide 3.8: Java built-in packages
Slide 3.10: Java
java.lang
package
Home
Print version
▶
Next
“May you live every day of your life.”
― Jonathan Swift