You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
#Platform
2
-
Java and Platform Independence
2
+
##Java and Platform Independence
3
3
-[Image](images/JavaPlatFormIndependence.png)
4
4
- 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?
8
7
- 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)
11
11
- JVM
12
12
- Virtual machine that run the Java bytecode.
13
13
- Makes java portable.
@@ -16,15 +16,17 @@ JDK vs JVM VS JRE
16
16
- JDK
17
17
- JRE + Compilers + Debuggers
18
18
19
-
Classloaders and Types
20
-
-TODO JavaClassLoaders.png
19
+
##Classloaders and Types
20
+
-[Image](images/JavaClassLoaders.png)
21
21
- 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
25
25
- 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.
0 commit comments