==> Java is Object Oriented Programming Language ==> Multithread based language High Level Programming languages ==> categorized into three types: 1) Structured Programming Languages: C Pointers, Structures 2) Object Based: VB Script 3) Object Oriented: Java OOPs ==> Object Oriented Programming System class object method constructor Destructor Encapsulation Polymorphism Inheritance Abstraction Access modifiers check balance{ } transactions() { } Is Java Strongly Object Oriented Programming Language? ======================================================= Yes, because, to write the single line of code in Java, we need to add the class. Java Program Structure: ======================= 1) Documentation Section ======================== ==> improve the readability of the program. ==> Writing comments in the program is called as "documentation". ==> Two approaches: Single-line comments ==> // Multi-line Comments ==> /* */ ==> Suggestable. Note: ==== Cannot be Executed. (This is non-executable part of the program) Documentation can write in anywhere of the program. find biggest number among four integers. 1) define four numbers 2) take first number 3) compare first number with second number if first > second 4) first with third first > third 5) first > fourth biggest = first if first not > second 6) second second > third second > fourth biggest = second 2) Package Section ================== collection of classes keyword: package ==> Optional whatsapp{ texting: incoming() outgoing() audio calling() video calling() check status post status transactions } Import Section: =============== ==> used to take the data or methods of one module (java file) to another module ==> keyword: import ==> optional Pi = 3.1416 import math.pi class{ met1() { area } met2(){ circumference } } class Section: ============== ==> mandatory. ==> keyword: class Syntax: class class-name{ attributes methods } ==> class as the collection of attributes (data) and methods Special method: =============== main() describe where the java program has start and where it can end. Syntax: public static void main(String[] args) { } // This is the First Program in Java /* I am using Notepad as a text editor and I can run my first java program in my computer using command prompt. */ class firstClass{ public static void main(String[] args) { System.out.println("Hello World!"); } } Writing of Java Program: ======================== Text Editor: Note pad ==================== 1) open the notepad 2) title the file (java file) java file must be having the extension with ".java" Syntax: title/file-name.java 3) We have written the comments into the java file Compile the Java Program: ========================== 1) start the command prompt 2) we need to navigate (get the java file path) the java file using "cd" command Syntax: cd file-path-location 3) Compile the java file using "javac" command Syntax: javac file-name.java Run the Java program: ===================== ==> to run the java program, we can use java" command Syntax: java file-name