ng new projectName
OOps in java is to improve code readability and reusability by defining a Java
program efficiently.
James Gosling
oracle corporation
23 January 1996
A Java IDE is an integrated development environment. IDEs typically provide a code
editor, a compiler or interpreter and a debugger that the developer accesses
through a unified graphical user interface (GUI).
JVM (Java Virtual Machine)
Java Virtual Machine is a software tool responsible for creating a run-time
environment for the Java source code to run. The very powerful feature of Java,
"Write once and run anywhere," is made possible by JVM.
The JVM stays right on top of the host operating system and converts the java
source code into ByteCode (machine language), and executes the program.
JDK (Java Development Kit)
We can define the Java Development Kit as a software development environment
responsible for creating a run-time environment for the Java source code to run.
JRE (Java Run-time Environment)
Java Run-time Environment is a software platform where all the Java Source codes
are executed. JRE is responsible for integrating the software plugins, jar files,
and support libraries necessary for the source code to run.
Just-In-Time (JIT) compiler is a component of the runtime environment that improves
the performance of Java™ applications by compiling bytecodes to native machine code
at run time.
Compiling a Java program means taking the programmer-readable text in your program
file (also called source code) and converting it to bytecodes, which are platform-
independent instructions for the Java VM.
An interpreter is a program that reads in as input a source program, along with
data for the program, and translates the source program instruction by instruction.
Byte Code can be defined as an intermediate code generated by the compiler after
the compilation of source code(JAVA Program). This intermediate code makes Java a
platform-independent language
public class Main
{
public static void main(String[] args) {
String str = "JKBHJKVbjklVGBHJjnnjkBhbnm jkhjvghKHJVjhjbvhKBHJHvghmnbb
ghhjbVH";
char[] c = str.toCharArray();
for(int i=0;i<str.length();i++){
if(c[i]>='a' && c[i]<='z'){
c[i]-=32;
}else{
c[i]+=32;
}
}
String s = new String(c);
s =s.replace('@',' ');
System.out.println(s);
}
}