Skip to content

Commit b017c60

Browse files
committed
Update readme.md
1 parent da4fdf8 commit b017c60

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

readme.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#Platform
2-
Java and Platform Independence
2+
##Java and Platform Independence
33
- [Image](images/JavaPlatFormIndependence.png)
44
- Build once, Run anywhere
5-
- Java is one of the most popular platform independent languages. Once we compile a java program and build a jar, we can run the jar (compiled java program) in any Operating System U where a JVM is installed.
6-
- JVM, ByteCode
7-
- TODO JavaPlatFormIndependence.png
5+
- Java is one of the most popular platform independent languages. Once we compile a java program and build a jar, we can run the jar (compiled java program) in any Operating System where a JVM is installed.
6+
- What is ByteCode?
87
- The executable instructions are different in different operating systems. So, there are different JVM s for different operating systems. A JVM for windows is different from a JVM for mac.
9-
JDK vs JVM VS JRE
10-
- See jvm-jre-jdk.jpg
8+
9+
##JDK vs JVM VS JRE
10+
- [Image](images/jvm-jre-jdk.jpg)
1111
- JVM
1212
- Virtual machine that run the Java bytecode.
1313
- Makes java portable.
@@ -16,15 +16,17 @@ JDK vs JVM VS JRE
1616
- JDK
1717
- JRE + Compilers + Debuggers
1818

19-
Classloaders and Types
20-
- TODO JavaClassLoaders.png
19+
##Classloaders and Types
20+
- [Image](images/JavaClassLoaders.png)
2121
- A Java program is made up of a number of custom classes (written by programmers like us) and core classes (which come preUpackaged with Java). When a program is executed, JVM needs to load the content of all the needed class. JVM uses a ClassLoader to find the classes.
22-
- System Class Loader U Loads all classes from CLASSPATH
23-
- Extension Class Loader U Loads all classes from extension directory
24-
- Bootstrap Class Loader U Loads all the Java core files
22+
- System Class Loader : Loads all classes from CLASSPATH
23+
- Extension Class Loader : Loads all classes from extension directory
24+
- Bootstrap Class Loader : Loads all the Java core files
2525
- When JVM needs to find a class, it starts with System Class Loader. If it is not found, it checks with Extension Class Loader. If it not found, it goes to the Bootstrap Class Loader. If a class is still not found, a ClassNotFoundException is thrown.
2626

27-
Why do we need Wrapper Classes?
27+
#Language Basics
28+
##Why do we need Wrapper Classes?
29+
- [Code](src/main/java/com/in28minutes/java/wrapper/WrapperExamples.java)
2830
- See TODO WrapperExamples.java
2931
- A wrapper class wraps (encloses) around a data type and gives it an object appearance
3032
- Wrapper: Boolean,Byte,Character,Double,Float,Integer,Long,Short

0 commit comments

Comments
 (0)