Java Notes
Java Notes
Syntex
The following table summarizes all versions of Java SE from its early days to the latest.
Java SE
19 19
Versions 1.0 and 1.1 are named as JDK (Java Development Kit).
From versions 1.2 to 1.4, the platform is named as J2SE (Java 2 Standard
Edition).
From versions 1.5, Sun introduces internal and external versions. Internal
version is continuous from previous ones (1.5 after 1.4), but the external
version has a big jump (5.0 for 1.5). This could make confusion for someone,
so keep in mind that version 1.5 and version 5.0 are just two different version
names for only one thing.
From Java 6, the version name is Java SE X.
2) Hello is our class name. First letter of class name should be in uppercase. It
is not a condition but it is just a convention.
6) System is also a final class from java.lang package. out is a static member
of System class of type PrintStream. println is a method
of PrintStream class.
7) You can explore the source code of both System class and String class. Go
to JDK installation directory and extract the ‘src‘ zip file. Then go to src –> java
–> lang. In lang folder, you will find both System and String Java files.