Java Programming Chapter Wise


Overview of Java Language

IdProgram TitleView
 0  My First Program In Java
 1  Print Your Name
 2  Comments in Java
 3  Single Line Comment in java
 4  Multi Line Comment in java
 5  Documentation Comment in java

DataTypes in java

IdProgram TitleView
 0  byte Datatype in Java
 1  short Datatype in Java
 2  int Datatype in Java
 3  long Datatype in Java
 4  float Datatype in Java
 5  double Datatype in Java
 6  boolean Datatype in Java
 7  char Datatype in Java

Variables in java

IdProgram TitleView
 0  Variable Declaration And Initialization
 1  Instance Variable in Java Programming
 2  Defining integer literals as octal values
 3  Hexadecimal integer literal
 4  Hexadecimal literal of type long
 5  Decimal literal in java
 6  Floating-point Literals in java
 7  Floating-point Literals in java
 8  Boolean Literals in java
 9  Character Literals in java
 10  String Literals in java
 11  Unicode system example 1
 12  Unicode system example 2

Constants in java

IdProgram TitleView

Operators in java

IdProgram TitleView
 0  Unary Operator Example in Java
 1  Unary Operator Example 2: ++ and --
 2  Java Unary Operator Example: ~ and !
 3  Arithmetic Operator Example in java
 4  Arithmetic Operator Example: Expression in Java
 5  Shift Operator Example: Left Shift in Java
 6  Shift Operator Example: Right Shift in Java
 7  Shift Operator Example: >> vs >>> in Java
 8  AND Operator Example: Logical && and Bitwise & in Java
 9  AND Operator Example: Logical && vs Bitwise & in java
 10  OR Operator Example: Logical || and Bitwise | in java
 11  Ternary Operator Example in java
 12  Ternary Operator Example 2 in java
 13  Assignment Operator Example in java
 14  Assignment Operator Example 2 in java
 15  Assignment Operator Example: Adding short by type casting in java
 16  precedence in operators example in java
 17  Associativity and precedence in operators example in java
 18  instanceof operator, checking in current class
 19  instanceof operator, checking in child class
 20  instanceof operator, checking by assigning null value
 21  instanceof operator, Nice example
 22  instanceof operator, downcasting with instanceof
 23  instanceof operator, without the use of java instanceof
 24  instanceof operator, Understanding Real use of instanceof in java

Decision Making in java

IdProgram TitleView
 0  If-else Statement in java
 1  If-else Statement in java, odd or even ?
 2  If-else-if ladder Statement in java, Marksheet grade card.
 3  If Statement in java, pass or fail ?
 4  If else Statement in java, pass or fail.
 5  If-Else Ladder Statement, Marksheet Grade Card
 6  Condition Checking inside if (OR)
 7  Condition Checking inside if (AND)
 8  Switch Statement in java
 9  Switch Statement without break in java
 10  Switch Statement with break in java, Select a day from week by switch statement
 11  Switch Statement with break in java, Based on Grade give a Remark
 12  Nested if Statement in java

Decision Making and Looping in java

IdProgram TitleView
 0  While Loop in java, Print 1 to 10
 1  Infinitive While Loop
 2  While Loop Example, print 10 to 19
 3  While Loop Example, print 1 to 8 different way
 4  Break statement in While loop
 5  Continue statement in While loop
 6  do while loop in java
 7  do while loop in java, print 10 to 19
 8  Infinite do while loop in java
 9  do while loop in java, Important Example
 10  Break statement in do while loop in java
 11  Continue statement in do while loop in java
 12  for loop in java
 13  for loop in java, print 10 to 19
 14  Infinite for loop in java
 15  for loop in java, different way
 16  Break Statement in for loop in java
 17  Continue Statement in for loop in java
 18  for each loop in java
 19  Break statement in for each loop in java
 20  Continue statement in for each loop in java
 21  Labeled for loop in java
 22  Labeled for loop in java, Example 2
 23  Boolean Wrapper class in Java
 24  Character Wrapper class in Java
 25  Byte Wrapper class in Java
 26  Byte Wrapper class in Java Example 2
 27  Short Wrapper class in Java
 28  Short Wrapper class in Java Example 2
 29  Integer Wrapper class in Java
 30  Long Wrapper class in Java
 31  Float Wrapper class in Java
 32  Double Wrapper class in Java
 33  Java program to check armstrong number
 34  Program to display the fibonacci series based on the user input
 35  Displaying Fibonacci Sequence using while loop
 36  Program to print fibonacci series using for loop
 37  Printing the Fibonacci Series using Iteration different approach

Class, Object and Methods in java

IdProgram TitleView
 0  Instance variable and static variable comparison using program
 1  Instance variable and static variable comparison using program
 2  Instance variable and static variable comparison using program
 3  Static Method and Instance Method in Java
 4  Method in java, Simple main method Example
 5  Method in java, Simple main method Example 2
 6  Method in java, Simple method Example other than main
 7  Method in java, Simple void method Example other than main
 8  Method in java, Passing Parameters by Value
 9  Class and Object
 10  Object and Class Example: main within class
 11  Object and Class Example: main outside class
 12  Class and Object Example: Initialization through reference
 13  create multiple objects and store information in it through reference variable.
 14  Class and Object Example: Initialization through method
 15  Class and Object Example: Initialization through constructor
 16  Class and Object Example: Area of Rectangle
 17  ways to create an object in Java Example 1
 18  ways to create an object in Java Example 2
 19  Creating multiple objects by one type only
 20  Example for understanding class object and method
 21  Default constructor in java
 22  Default constructor in java example 2
 23  Default constructor in java, constructor present in another class
 24  Parameterized Constructor, constructor present in another class
 25  Parameterized Constructor, constructor present in same class
 26  Parameterized Constructor, constructor present in same class, with method
 27  Parameterized Constructor, constructor present in same class, with method example 2
 28  Parameterized Constructor, constructor present in same class, with method usefull example
 29  Constructor Overloading in Java
 30  Constructor Overloading in Java, Important Example
 31  Copy of a Constructor, By constructor and object
 32  Copy of a Constructor, without Constructor by using object
 33  Constructor Chaining in Java
 34  Variable Hiding in java, intro for this keyword
 35  this keyword, Variable Hiding in java
 36  this Keyword with Constructor in java, overloaded constructor in the same Class
 37  this Keyword with Method in java, Methods to call another Method from same Class.
 38  Understanding the problem without this keyword, this keyword to refer current class instance variable.
 39  Solution of the previous problem, this keyword to refer current class instance variable
 40  Solution of the previous problem,different name instance variable and local variable
 41  this keyword to invoke current class method
 42  this() constructor to invoke current class constructor
 43  this() constructor to invoke current class constructor, Another important Example
 44  this keyword to pass as argument in the constructor call
 45  this() constructor call, Real Utilization
 46  static variable (also known as class variable)
 47  Note:Call to this() must be the first statement in constructor.
 48  this keyword to pass as an argument in the method
 49  this keyword can be used to return current class instance
 50  prove that this keyword refers to the current class instance variable
 51  this keyword as Method parameter, Using Inheritance
 52  static variable with constructor and method
 53  counter without static variable, problem
 54  counter with static variable, problem solved
 55  static and instance variable, how to access
 56  static Method and variable in java, how to access methods and variables
 57  static Method and variable in java, Important Example
 58  static Method and variable in java, static variable increment using methods
 59  Simple Calculation using static method
 60  static block in java
 61  static block in java,we can execute a program without main() method
 62  Static Nested Class in java
 63  Static keyword in java, by inheritance
 64  Single Inheritance in java
 65  Single Inheritance in java Example 2
 66  Multilevel Inheritance in java
 67  Hierarchical Inheritance in java
 68  multiple inheritance is not supported in java
 69  Method Overriding in Java
 70  Method Overriding in Java Example 2
 71  Method Overriding in Java Example 3
 72  Java Runtime Polymorphism Example: Profession
 73  Java Runtime Polymorphism Example: Animal
 74  Note:Runtime polymorphism can't be achieved by data members.
 75  Runtime Polymorphism ( method overriding ) with Multilevel Inheritance
 76  super can be used to refer immediate parent class instance variable.
 77  super keyword can be used to invoke parent class method
 78  super keyword can be used to invoke parent class method: Example: Animal class
 79  super keyword can be used to invoke parent class constructor
 80  super() is added in each class constructor automatically by compiler if there is no super()
 81  super() keyword important behavior
 82  final variable: you can not change the value of final variable
 83  final method: If you make any method as final, you cannot override it.
 84  final class: If you make any class as final, you cannot extend it.
 85  final method: final method is inherited but you cannot override it
 86  final variable: we can initialize blank final variable, but only in constructor.
 87  static blank final variable:that is not initialized at the time of declaration is known as static blank final variable. It can be initialized only in static block.
 88  final parameter:If you declare any parameter as final, you cannot change the value of it.
 89  Fibonacci Series using Recursion

Array in java

IdProgram TitleView
 0  Basic programming of array
 1  Example of single dimensional java array
 2  Important of an array example
 3  how to create, initialize, and process arrays
 4  Passing Array to method in java
 5  Example of Multidimensional java array
 6  Java Programming Code for Two Dimensional (2D) Array

Inheritance in java

IdProgram TitleView
 0  Java Inheritance Example
 1  Inheritance example in java

Polymorphism in Java

IdProgram TitleView
 0  Abstract classes may contain abstract methods, To use an abstract class, you have to inherit it from another class, provide implementations to the abstract methods in it.
 1  Abstract classes may not contain abstract methods
 2  If a class has at least one abstract method, then the class must be declared abstract.
 3  If a class is declared abstract, it cannot be instantiated.
 4  If you inherit an abstract class, you have to provide implementations to all the abstract methods in it.
 5  Understanding the important scenario of abstract class
 6  Understanding the important real world abstract class
 7  Abstract class having constructor, data member, methods etc.
 8  If you are extending any abstract class that have abstract method, you must either provide the implementation of the method or make this class abstract.

Abstarct class and Methods in java

IdProgram TitleView
 0  Interface Example, a class implements an interface.
 1  Interface Example, a class implements Like hierarchical inheritance
 2  Interface Example,Real life ,class implementation Like hierarchical inheritance
 3  The java compiler adds public and abstract keywords before the interface method.
 4  The java compiler adds public, static and final keywords before data members.
 5  Multiple inheritance in Java by interface
 6  Multiple inheritance in Java by interface, by same method name
 7  Interface inheritance

Interface in java

IdProgram TitleView

Packages in java

IdProgram TitleView

Multithreading in java

IdProgram TitleView

Managing Errors and Exception

IdProgram TitleView

Applet Programming

IdProgram TitleView