1 Installation
1 Installation
Open Link:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-
2133151.html
Launch the command prompt via All Programs Accessories Command Prompt.
OR
After compilation command, either control go on next line or it can show the
following error on screen:
(C:\Program Files\Java\jdk1.8.0_131\bin)
Note: In LINUX
export PATH=$PATH:/home/jdk1.6.01/bin/
public: main is called by operating system in C++ but by JVM in java, JVM can call
main only when the public mode is given before main.
static: Since JVM is calling main which is in class, so if we want to call main, an
object of class is required to call main by JVM. So JVM escape from the burden of
creating an object for the purpose of calling main().