It Class 12 Part-1
It Class 12 Part-1
What is Java?
Java is a very popular high level programming language and has been used widely to create
various types of computer applications such as database applications, desktop applications, Web
based applications, mobile applications, and games among others.
Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
It is one of the most popular programming language in the world
It is easy to learn and simple to use
It is open-source and free
It is secure, fast and powerful
A general-purpose programming language made for developers to write once run
anywhere that is compiled Java code can run on all platforms that support Java. Java
applications are compiled to byte code that can run on any Java Virtual Machine.
Java Bytecode
The Javac compiler of JDK compiles the java source code into bytecode so that it can be executed
by JVM. It is saved as .class file by the compiler.
Comments in Java
Comments can be used to explain Java code, and to make it more readable. It can also be used to
prevent execution when testing alternative code.
Single-line Comments