Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
The Ultimate FREE Java Course Part 1 PowerPoint Presentation
Download Presentation
The Ultimate FREE Java Course Part 1

The Ultimate FREE Java Course Part 1

130 Views Download Presentation
Download Presentation

The Ultimate FREE Java Course Part 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. The FREE Java Course The FREE Java Course that doesn’t SUCK that doesn’t SUCK Part 1 Part 1

  2. 1. Memory Organization 2. Data Hierarchy Agenda 3. Types of programming languages 4. Hello World 5. Steps to Run A Java Program 6. Type Conversions

  3. 7. Operators 1. Arithmetic Agenda 2. Relational 3. Assignment 4. Increment/Decrement 5. Logical

  4. 8. If 9. Ternary Operator 10. for Agenda 11. while 12. do while 13. break 14. continue

  5. 15. Strings 16. String Builder & Conversions Agenda 17. Methods & Types of methods 18. Method Overloading 19. Variable Scope 20. Arrays

  6. Where do I watch these videos? coursetro.com

  7. Keyboard Input Devices Main Memory Mouse Control Unit Display CPU ALU Output Devices Secondary Storage Printer Storage CPU

  8. 0 1 Bit or Unicode Letter V 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 i z V v Field 26 Vivz Record 26 Vivz 32 Gary File 26 Anky coursetro.com

  9. Machine Level Assembly Level High Level +1300042774 +1400593419 +1200274027 load pay add overtime store total total = pay + overtime coursetro.com

  10. Click To Watch Videos Below Install Java JDK On Mac Install Java JDK On Windows Relevant Videos Install IntelliJ On Windows Install IntelliJ On Mac

  11. Google It! • ASCII table • unicode table • ASCII vs Unicode • utf-8 means • utf-8 vs utf-16 • machine level language vs assembly language

  12. Hello World Hello World coursetro.com

  13. “ “Hello World” ” coursetro.com

  14. println println( (“Hello World”); ); coursetro.com

  15. System.out. System.out.println(“Hello World”); coursetro.com

  16. coursetro.com

  17. coursetro.com

  18. Google It! 1. println in Java 2. system.out.println 3. java system class 4. java String 5. java main method 6. string args in java 7. void in java

  19. Create 5 steps to run a Java program Run Compile Verify Load

  20. Create Editor Disk coursetro.com

  21. Compile Compiler Disk javac HelloWorld.java -> HelloWorld.class coursetro.com

  22. Load Class Loader Primary Memory Disk java HelloWorld coursetro.com

  23. Verify Bytecode Verifier Primary Memory coursetro.com

  24. Run Java Virtual Machine (JVM) Primary Memory coursetro.com

  25. Click To Watch Videos Below Memory Hello World Explained Organization And Data Hierarchy Relevant Videos Hello World Example Steps To Run A Java Program

  26. Google It! 1. list of java editors 2. javac command 3. java command 4. java compiler vs interpreter 5. java classloader 6. java bytecode verifier 7. jvm in java 8. jvm vs jre 9. jvm vs jre vs jdk vs jit

  27. What is a variable? Storage location in a computer program. It has a name and value. Assign a value to it any number of times. coursetro.com

  28. byte short int long 1 byte 4 bytes 8 bytes 2 bytes

  29. boolean char float double Not precisely defined 4 bytes 8 bytes 2 bytes

  30. byte byte myByte = 100; = 100; short short myShort = 1000; = 1000; int int myInt = 100000; = 100000; long long myLong = 1000000; = 1000000; coursetro.com

  31. float float myFloat = 125.124f; = 125.124f; double double myDouble = 125.214545544; = 125.214545544; char char myChar = ‘C’; = ‘C’; boolean boolean condition = true = true coursetro.com

  32. What is a constant? It has a name and a value. You must assign the value while creating it and cannot change it afterwards. coursetro.com

  33. Example final final double PI = 3.14159625; coursetro.com

  34. Google It! 1. Data types in java 2. java constants 3. java final variable

  35. Type Conversion Type Conversion A small box can be fitted into a bigger box but vice versa is tricky. A small box can be fitted into a bigger box but vice versa is tricky. long int int long Implicit Type Conversion Explicit Type Conversion

  36. Type Conversion Type Conversion int earthRad = 6371; long long radius = earthRad earthRad; long int coursetro.com

  37. Type Conversion Type Conversion long galaxyRad= 1000000000000000000L L; int int radius = ( (int int) ) galaxyRad; long int coursetro.com

  38. Click To Watch Videos Below Variables And Constants Example Variables And Constants Explained Relevant Videos Typecasting Explained Typecasting Example

  39. Arithmetic Operators Addition Subtraction Multiplication Division Modulus + - * / % coursetro.com

  40. Modulus Operator • It gives you the remainder between 2 numbers. It gives you the remainder between 2 numbers. 5 % 2 = 1 5 % 2 = 1 3 4 5 1 2 2 * 2 = 4 2 * 2 = 4 • 3 % 4 = 3 3 % 4 = 3 coursetro.com

  41. Expression • Expression in Algebra 1 + 2 + 3 + 4+ 5 = 3 5 • Expression in Java (1 + 2 + 3 + 4+ 5) / 5 = 3 coursetro.com

  42. Operator Precedence In Java Arithmetic Operators are evaluated in the following order from first to last Multiplicative * / % Additive + - Example: 3 * 41 + 7 / 3 – 2 % 1 = ((3 * 41) + (7 / 3)) – (2 % 1) = 125.33 coursetro.com

  43. Google It! 1. explicit typecasting in java 2. implicit typecasting in java 3. integer division in java 4. modulus operator can be applied to which of the following 5. java expression example 6. precedence of operators in java 7. associativity of operators in java

  44. Greater Than //Contains true boolean boolean result = 5 > 4; result = 5 > 4; int int numOne numOne = 5; int int numTwo numTwo = 4; = 5; = 4; //Contains true boolean boolean result = result = numOne numOne > > numTwo numTwo; ; coursetro.com

  45. Less Than //Contains false boolean boolean result = 5 < 4; result = 5 < 4; int int numOne numOne = 5; int int numTwo numTwo = 4; = 5; = 4; //Contains false boolean boolean result = result = numOne numOne < < numTwo numTwo; ; coursetro.com

  46. Greater Than Or Equal To //Contains true boolean boolean result = 5 >= 4; result = 5 >= 4; //Contains true boolean boolean result = 5 >= 5; result = 5 >= 5; int int numOne numOne = 5; int int numTwo numTwo = 4; = 5; = 4; >= numTwo numTwo; ; //Contains true boolean boolean result = result = numOne numOne >= coursetro.com

  47. Less Than Or Equal To //Contains false boolean boolean result = 5 <= 4; result = 5 <= 4; //Contains true boolean boolean result = 5 <= 5; result = 5 <= 5; int int numOne numOne = 5; int int numTwo numTwo = 4; = 5; = 4; <= numTwo numTwo; ; //Contains false boolean boolean result = result = numOne numOne <= coursetro.com

  48. Equals To //Contains false boolean boolean result = 5 == 4; result = 5 == 4; //Contains true boolean boolean result = 5 == 5; result = 5 == 5; int int numOne numOne = 5; int int numTwo numTwo = 5; = 5; = 5; //Contains true boolean boolean result = result = numOne numOne == == numTwo numTwo; ; coursetro.com

  49. Not Equals To //Contains true boolean boolean result = 5 != 4; result = 5 != 4; //Contains false boolean boolean result = 5 != 5; result = 5 != 5; int int numOne numOne = 5; int int numTwo numTwo = 5; = 5; = 5; //Contains false boolean boolean result = result = numOne numOne != != numTwo numTwo; ; coursetro.com

  50. Click To Watch Videos Below Arithmetic Operators Example Arithmetic Operators Explained Relevant Videos Relational Operators Explained Relational Operators Example