J2SE or the Java Platform Standard Edition is popularly used in Java language programming. This is the platform commonly used to create portable applications.
What does J2SE do?
J2SE consists of a virtual machine needed for a Java program to work together with its set of libraries (packages). These libraries are needed to gain access and use networks, graphical interfaces, file systems and other applications that belong to those programs.
What are J2SE’s Purpose Packages?
Descriptions of Main Java SE libraries are as follows:
- java.lang – It contains fundamental classes and sets of interfaces narrowly attached to its language and its runtime systems. Included are class hierarchy, math functions, basic exceptions, security functions, threading, and others.
- java.lang.ref – It contains a package with more flexible references than others, and allows limited communication between the Java Virtual Machine garbage collector, and its applications.
- java.lang-reflect – This reflection is an element of Java API, which allows the code to examine Java’s components during runtime and utilize its reflected elements.
- java.io – This package has classes that can support the J2SE’s input and output. These packages are stream-oriented; but random access files are also provided.
- java.nio – It is applied to support memory-mapped I/O.
- java.math – This helps multiprecision number generators of prime numbers.
- java.net – This is an open-source project set.
- java.text – This is a package made up of interfaces and classes useful for international localized programs.
- java.util – This is a collection of Java utility classes.
Uses of J2SE
The J2SE allows users to view Flash movies and hear audio files by simply clicking on a certain page link. As a user clicks, the pages go to the browser environment and begin the process of launching the application. Once the request for access has been granted, the video and sound application is executed. One popular example of J2SE in action is online games. In this type of environment certain facilities coordinate the interaction between the online community and the user via music and video applications.