Содержание
- 2. Agenda History Feature of Java JAVA Platform Primitive vs Reference Garbage Collection Steps to create a
- 3. History James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
- 4. History
- 5. Feature of Java April 2009
- 6. Feature of Java Object Oriented − In Java, everything is an Object. Java can be easily
- 7. Feature of Java Secure Java program always runs in Java runtime environment with almost null interaction
- 8. Feature of Java High-performance Java uses Just-In-Time compilers. Garbage collector, collect the unused memory space and
- 9. Feature of Java
- 10. JAVA Platform jar, war java, javaw JDK − Java Development Kit JRE − Java Run-time Environment
- 11. Java Virtual Machine JVM Class Loader Execution Engine Native Method Libraries Native Method Interface
- 12. JVM JVM Classloader Hierarchy
- 13. Stack and Heap Stack − This memory is used for execution of a thread. Stack memory
- 14. Primitive vs Reference class Person { private String c; public Person() { } public Person(String s)
- 15. Primitive vs Reference public class Start { public static void main(String args[]) { int a =
- 16. Heap Primitive vs Reference Stack String Pool Instance "1" Instance "2" public static void main(String args[])
- 17. Heap Primitive vs Reference Stack String Pool Instance "A" Instance "2" public static void main(String args[])
- 18. Garbage Collection Garbage Collector is the program running in the background that looks into all the
- 19. Garbage Collection Ways to make an object eligible for GC: Nullifying the reference variable Re-assigning the
- 20. Garbage Collection Garbage Collector Strategies: Serial Garbage Collector- S GC Parallel Garbage Collector- P GC (default
- 21. Steps to create a Java application 1. Code development 2. Compiling source code into bytecode 3.
- 22. JAVA_HOME & JRE_HOME JAVA_HOME if you installed the JDK or JRE_HOME if you installed the JRE
- 23. PATH
- 24. javac + java
- 25. Java Archive JAR Manifest-Version: 1.0 Main-Class: Start Created-By: 10.0.2 (Oracle Corporation) Start.java Start.class Bytecode javac.exe Start.java
- 26. JAR
- 27. JAR LIVE DEMO
- 28. Integrated Development Environment IntelliJ IDEA
- 29. Integrated Development Environment Eclipse
- 30. Java Frameworks Google Web Toolkit
- 31. The main method public class Start { public static void main(String[] args) { System.out.println("Hello"); } }
- 32. The main method public static void main(String[] args) public static void main(String args[]) public static void
- 33. The main method public class Start { public static void main(String args) { System.out.println("Hello 2"); }
- 34. Code convention
- 35. Javadoc
- 36. Maven project LIVE DEMO
- 37. Q&A
- 39. Скачать презентацию