Java Tutorial for Beginners
Java Tutorial for Beginners
Java Tutorial for Beginners, Java Program Environment, Java Syntax, java Program Structure, Java Variables, Java Data Types, Java Operators, Java Control Flow, Java IO, Java Strings and Arrays, Java Methods, Java Exception handling, and Java Object Oriented Programming.
1) Introduction to Java Programming
(What is Java?, History of Java, Types of Java Software, Editions of Java (Java Standard Edition, Java Enterprise Edition, and Java Micro Edition), Features of Java, Uses of Java Programming, Java Basic Syntax & Coding Standards, Java Environment Setup, and Java Language Elements)
2) Overview of Java Language
(Java language Elements – Comments, Data Types, Modifiers, Variables, Operators, Control Flow Statements (Conditional, Loop, and Branching), Strings, Arrays, ArrayList, Methods (predefined & user defined), Exception Handling, Java Inheritance, Polymorphism, Abstraction, and Encapsulation)
3) Java Environment Setup
(Java Features, Java Syntax Rules, Download & Install JDK (Java Development Kit) Software, Download Eclipse IDE & Extract, Write Java program in Notepad and Run form DOS Command prompt, and Write & Execute / Run Java Programs using Eclipse IDE. Configure Eclipse IDE (Eciplse IDE Fonts and Colors, and Output Console Fonts and colors)
4) Java Program Structure with an Example
(Java Program Structure with an Example, Declare Various types of Variables & Constants, Writing General Statements, Java Syntax Rules, Writing Condition Blocks (Normal if, Else If, Nested If, Switch…), Loop Blocks (for, while Do loop, Enhanced For…), and Declare Methods (Static, Non static…) & Call Methods…)
5) Comments in Java
(Purpose Comments in Computer Programming, Code Documentation, Writing Single Line Comments, and Writing Multiple Line comments, and Writing Comments using Eclipse IDE Features…)
6) Java Data Types
(What is Data Type?, Data Types in Java, Java Primitive Data Types, and Non primitive Data Types. Java Integer Data Types, Relational Data Types, Character Data Type, and Conditional Data Type.
7) Modifiers in Java
(Modifiers in Java, Types of Modifiers, Access Modifiers, and Non Access Modifiers. public, private, default, and protected Access Modifiers in Java, and abstract, final, static, synchronized etc.. Non Access Modifiers in Java).
8) Java Variables
(What is Variable?, Assign values to Variables, Usage of Variables, and variables naming restrictions in Java. Types of Variables in Java, Java Local Variables, Java Instance variables, and Java Static Variables or Class Variables)
9) Operators in Java
(What is Operator?, Types of Operators in Java, Java Arithmetic Operators, Java Relational or Comparison Operators, Java Assignment Operators, and Java Logical Operators with Syntax and Examples).
10) Java Control Flow Statements
(Java Control Flow Statements, Types of Flow Control Statements in Java, Java Conditional Statements (if, switch…), Java Loop Statements (for, while, do while, and enhanced for), and Branching Statements (break, continue, return…)
(Types of Conditional Statements in Java, Types of Conditions- Single Condition, Compound condition, and Nested Condition. Usage of Conditional Statements, Simple Condition, Multi Condition, Else if structure, and Nested if structure).
12) Loop Statements in Java
(Looping through the Code, Types of Looping Statements in Java with Syntax & Examples. Java for loop, while loop, do while loop, and enhanced for loop. Parameterization, Code repetitive execution, and inserting loop blocks in conditions and vice versa).
13) Branching Statements in Java
(Three branching statements in Java – break, continue and return. The break and continue in Java are two essential keyword beginners needs to familiar while using loops ( for loop, while loop and do while loop). break statement in java is used to break the loop and transfers control to the line immediate outside of loop while continue is used to escape current execution (iteration) and transfers control back to the start of the loop.)
14) String Handling in Java
(Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings.)
15) Array, ArrayList in Java
(Arrays in Java, Create Array in Java, define Array Size, and Assign values to Array elements. Creating different types of Arrays – Array of Strings, Array of Integers, Array of characters etc..Operations on Arrays like Find Array Size, copy Arrays, and print Arrays. Create & use ArrayList (Java Dynamic Data Structure))
16) IO Operations
(Java Input and Output Operations, Read Input using Scanner object, Read & validate Input, Read Input using different predefined classes, and write Output on the Console using System.out.println(“”))
17) File Handling in Java
(File System Operations in Java, Working with Drives & Folders, Working with flat Files / Text files, Read Input from Text Files (Notepad), and Write Output to Text Files. Working with Other types files like Excel Files, Word Documents, PPT etc…)
18) Java Predefined Methods
(What is Method?, Types of Java Methods, How to use Java Predefined Methods, Categories of Java Methods, Java Array Methods, Java Number Methods, Java Character methods, and Java String Methods).
19) Java User Defined Methods
(Java User defined Methods, Java Static and Non Static Methods, Create Java Methods with or without Parameters and return a value, and create Java Methods with or without parameters and returns nothing. Call Java Methods, Call Java Methods from other Classes, and call Java methods using Inheritance).
20) Exception Handling in Java
(What is Exception handling, Common Scenarios where Exceptions may occur, Java Arithmetic Exception, Java Null Pointer Exception, Java Number Format Exception, and Java Array Index Out of bounds Exception. Handling Exceptions using try catch blocks, and handling multiple exceptions in a program).
21) Java OOPS – Inheritance
(Java Object Oriented Programming System – Inheritance, Types of Inheritance – single level Inheritance, Multi level Inheritance, and Multiple Inheritance. Java Class members, and Reuse Class Members with Inheritance. Reuse Class Members between two or more classes in Same Package and Reuse Class Members between two or more classes from different Packages under different projects).
22) Java OOPS – Polymorphism
(Java Object Oriented Programming System – Polymorphism, Two Types of Polymorphism in Java, Compile Time Polymorphism / Method OverLoading and Run Time Polymorphism / Method Overriding. Advantages of Polymorphism and Polymorphism examples).
23) Java OOPS – Abstraction
(Java Object Oriented Programming System – Abstraction, What is Abstraction?, Create concrete and incomplete methods, create Abstract classes, and reuse Abstract Classes. Achieve Abstraction using Abstract Classes and using Interfaces).
24) Java OOPS – Encapsulation
(Java Object Oriented Programming System – Encapsulation, What is Encapsulation? advantages of Encapsulation, Create getter and setter methods, and reuse private fields using getter & setter methods)
25) Java Interfaces
(Create Java Interfaces, Java Classes vs Interfaces, Inherit Java Interfaces form Java classes, and reuse Java Interface Methods)
26) Java Programming Examples
(Java Programming general examples, Java Arithmetic Examples, Java Comparison Examples, Java Assignment examples, and Java Logical examples. Java Examples with control Flow Statements and File handling. Java programming examples with Creating & calling Methods)
Important Editions of Java:
1) Java Standard Edition
2) Java Enterprise Edition
3) Java Micro Edition