Java Notes
Java:
1. Platform independent
2. oops
3. portability → WORA
Java program → Compiler → bytecode → JVM →machine code → Computer →
Output
Service.java → compiler converts to byte code as Service.class →
JVM- Java virtual machine
Java Notes 1
Java program → Compiler → bytecode → JVM →machine code → Computer →
Output
1. Abstract machine → no physical machine
2. Platform dependent is JVM like mac, windows . Java program →
independent
3. it has JIT(Just in time) Compiler → does the byte code to machine code.
what JVM does ability to convert the byte code to machine code.
Loads code
Verifies code
Executes code
Provides runtime environment
JRE - Java runtime env
1. Contains the JVM + class libraries
a. class libraries like java.lang.Math , java.util.Array
2. JVM uses class path libraries that’s in the JRE
3. Only with JRE we can run any java program. but CAN NOT CODE
4. with JRE can we run any byte code.
JDK: Java development kit:
1. Compiler is present in JDK ie. javac MyProgram.java
2. Debugger.
3. programming.
Tools:
Java Notes 2
interpreter/loader (java)
a compiler (javac)
an archiver (jar),
a documentation generator (Javadoc)
JVM Architecture
Java String
HashMap Implementation
Java 8
JAVA CLI Commands
Miscellaneous interview questions
Spring Boot
Java Threads
Java collections
Spring security
OAuth
1. Static & instance variable
2. streams group by
3. webservice & microservice
4.
Java Notes 3