Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)

Basic Java Training Video Course For Beginners

In this Basic Java Training, you will learn java language basics. This playlist talks about language fundamentals and concepts. Here we will not dig into JAVA SDK and API. We will learn it in a separate video series. We would suggest learning java language before going to the JAVA SDK. This series is having 6 hours of learning.

01

First Java Console Application

Preview

In this video you will create your first java console example. Make sure you have eclipse installed in your machine. This course uses Java 1.8 and eclipse oxygen.
Tags: Java, class
02

Java Class Object and its State And Behavior

Preview

The Video explains what is Class and Objects. It explains state and behavior of an Object with an example.
Tags: Java, Class, Object, State, Behavior
03

Ternary Operator Explained with Example

Preview

This video explains how one can use the Ternary Operator in Java Language.
Tags: Java, Ternary Operator, Three Operands
04

Operator Precedence in Java

Preview

004-Operator Precedence.mp4_thumbs

This video explains the importance of Operator and its precedence. You will see how expression of evaluated on three rules. 1.Parenthesis 2. High to Low Precedence 3. Left to Right on Equal Precedence.
Tags: Java,Operator Precedence, Parenthesis in Expression, Nested Parenthesis in Expression
05

Java If Constructs

Preview

005-Java-If-Constructs.mp4_thumbs

This video explains the following in Java:

1) Simple Statement

2) Compound Statement

3) If Construct

4) If..Else

5) Nested if

Tags: java, if construct, if and else
06

Switch Case in Java

Preview

006-Switch..Case.mp4_thumbs

This video explains how one can use switch..case in Java. First it shows the how you can form a simple switch statement then tells the importance of a break statement.

Next, you see the need for case default. The video ends up with combining multiple case matches with a single body.

Tags: Java basics, Switch case
07

Java For Loop

Preview

007-For..Loop.mp4_thumbs

Video shows below points.

  1. Used to execute statement(s) repeatedly
  2. Initialization, condition, iteration are the parts.
  3. The body starts after the for keyword order:
    • First Time: Initialization part, Condition, Body, Iterator portion
    • Each Iteration: Condition, Body, Iterator Portion
Tags: java, for loop
08

While and Do While

Preview

008-While and Do While.mp4_thumbs

The while loop is slightly different from the for loop. It does not have initializer and iterator expression. It will only have the Condition and the Loop Body.

In do..while loop condition is evaluated at the end of the loop body. This means, the body is executed at least once. This video explains both while and do..while loop.

Tags: java loops,while,do..while
09

The use of break and continue in Java

Preview

009-break and continue.mp4_thumbs

The break statement in java is useful to quit the loop iteration. Application developers use it within a loop with a condition statement. The continue statement in java skips the current iteration and continues with next one.

This video explains both break and continue in java language. Then it will walk you through an example for the break and continue.

Tags: Java, Class, Object, State, Behavior
10

Labelled Break & Labelled Continue in Java

Preview

010-Labelled-Break-Labelled-Continue.mp4_thumbs

 

The ‘break statement’ in java breaks the execution flow out of the loop. The continue will skips the current iteration. But both will have the impact on the loop in which it is used. How do we come out of the outer loop in case of a nested loop? This video provides the solution to this situation with Labelled-Break and Labelled-Continue.

Tags: Breaking Nested Loops in Java,Labelled Break in Java,Labelled Continue in Java
11

Creating Instance of An Object

Preview

011_Creating Instance of An Object.mp4_thumbs

 

This video shows how to create a class and then instantiate instances from it. It explains the role of stack and heap while allocating the memory for the object and how reference is kept in stack.
Tags: Create Java Objects,What is Reference in Java,Primitive Type and Instance Type
12

One Object Two Reference

Preview

012_One Object Two Reference.mp4_thumbs

 

This video explains the importance of Java Object and its reference. Here, we create single object instance and then have two references to it. Then we study the memory behavior when we read and write that memory location using both the references.
Tags: Java Objects, Java Reference, Java two References to One Object
13

Java Method Call and Call Stack Primitive

Preview

013_Java Method Call and Call Stack (Primitive).mp4_thumbs

 

This video explains the java method calls and call stack frame associated to it. Here, we deal with primitive types.
Tags: Java Methods, Stack Frame, Primitive Type
14

Java Method Call and Call Stack Reference

Preview

014_Java Method Call and Call Stack (Reference).mp4_thumbs

This Video Explains how Java Method call works and what is the role of stack frame in it. Here you learn about reference type passed as parameter to a function and return from a function.
Tags: Java Method Call, Reference Type as Parameter, Reference Type as Return Value
15

Overloading Java Methods

Preview

015 - OverloadingMethods.mp4_thumbs

Like other OOPS Languages, in Java we can overload methods based on the arguments passed to it. In this video, you can learn overloading methods by:

  1. Number of Parameters
  2. Type of Parameters
  3. Order of Parameters
Tags: Java Method Overloading,Number of Parameters,Overloading by Types of Parameter,Overloading by Parameter Order
16

Access Specifiers in Java

Preview

016_Access Specifier.mp4_thumbs

 

This video creates a class called Person with two string members to denote first name and last name. Then, it uses the ‘Constructor’ to initialize the internal members in the object creation itself.
Tags: java public access specifier, Java private access specifier
17

Constructors of Java

Preview

017_Constructors.mp4_thumbs

This video creates a class called Person with two string members to denote first name and last name. Then, it uses the ‘Constructor’ to initialize the internal members in the object creation itself.
Tags: Java Constructors,Java Constructor with two Parameters
18

Default Constructor

Preview

018_DefaultConstructor.mp4_thumbs

 

In this video, we will learn when will a compiler provides a constructor to our class. This is called ‘Default Constructor’. Then, we will also learn how to suppress that constructor with our own version.
Tags: Java Constructors, Default Constructor, Override Default Constructor
19

Overloaded Constructors

Preview

019-OverloadedConstructors.mp4_thumbs

 

This video tells how to overload a constructor in Java. Here, we create a class called Numbers with three data members. The, we overload the Constructor to initialize the members in a different a way.
Tags: java, Constructor Overloading
20

Java ‘this’ reference

Preview

020_Java This Reference.mp4_thumbs

 

This video shows when one need to use ‘this’ reference in java. The video covers three aspects:

  1. Matching Parameters
  2. Calling Constructor from other Constructor
  3. Returning the called object to caller
Tags: Java, this reference
21

Static Members in Java

Preview

021_StaticMembers.mp4_thumbs

This video explains how one can declare static member in Java Class. It also shows how all instances of the class share the static member.
Tags: Java,Java Static Member
22

Static Methods in Java

Preview

022_StaticMethods.mp4_thumbs

 

Like static data members, the static methods also class specific. This video shows how to use static methods in Java.
Tags: Java, Static Methods
23

Static Initializer Blocks in Java

Preview

023_StaticInitializerBlocks.mp4_thumbs

 

Static Initializer Blocks of Java sets default values to the static variables in a class. This video Explains this with an Example
Tags: Java, Static Initializer Block
24

Java Array Declare Initialize Iterate

Preview

024_Array Declare Initialize Iterate.mp4_thumbs

 

This video shows how to declare an Array, allocate size dynamically and populate the array through a for loop.
Tags: Java, Array, Declare Array, Iterate an Array, Allocate Array Size Dynamically
25

Two Dimensional Array in Java

Preview

025_Two-Dimensional-Array.mp4_thumbs

 

This video explains how do you create 2DArray in Java. Here we generate and print Multiplication Tables 1..10
Tags: Java, 2D Array
26

Array Of Objects in Java

Preview

026_Array Of Objects.mp4_thumbs

 

This video explains how we can store Java Objects in a Array. The video then explains how we can reach to the objects through the array. You can also see the usage of Foreach construct in java.
Tags: Java Arrays, Foreach construct, Object Array
27

Variables Argument Array in Java

Preview

027-Variables Argument Array in Java.mp4_thumbs

 

This video shows how to create function like printf in java. Here, we create a function called ‘Summation’. This function takes variable argument list. User can pass ‘variable number of parameter’ to this function.
Tags: Java, Variable Argument List, Ellipsis parameter
28

Java Inheritance – An Introduction

Preview

028-Inheritance-Introduction.mp4_thumbs

 

In this video, we learn what is inheritance. It is an introduction video and more advanced topics are covered later in this video series.

Here, we create a class called CCar. Then we derive CBMW from the base CCar. The through the eclipse debugger, we study how members get inherited to subclass.

Tags: Java, Inheritance, Super Class, Sub-Class
29

Creating Packages in Java

Preview

029-Creating a Package in Java.mp4_thumbs

 

In this video tutorial, we will learn what is a package in java. Then we will create two packages in eclipse and organize three classes in them.
Tags: Java, Package, Create & Organize
30

Using Packages in Java

Preview

030-Using Packages.mp4_thumbs

 

This video shows how one can use packages in Java. In the previous video, we created empty classes for the Packages Points and Utils. Here we will code these classes and then study how to use the Packages and classes in it.
Tags: Java, Creating Packages, Using the Packages, import
31

Access Specifiers in Java

Preview

031-Access Specifiers in Java.mp4_thumbs

 

In this video tutorial, we will study Java access specifiers in terms of public, private, default and protected. We also experiment what is the behavior of Access Specifiers in terms of inheritance and packages
Tags: Java, inheritance, packages, public, protected, default, private
32

Java Super Keyword Usage

Preview

032-Java Super Keyword Usage .avi_thumbs

 

In this video tutorial, we will see how to use ‘super’ keyword in java to call base class constructor and method. The video also explains the need to provide our own constructor.
Tags: Java, super keyword, call base class constructor
33

Method Overriding in Java

Preview

033-Method Overriding in Java.mp4_thumbs

 

In this video, we will learn what is method overriding in Java. The video shows how we override a print method in two sub-classes. Then, we will explore how a base class reference points to the sub-class objects. We will also learn about Type Hierarchy View of eclipse.
Tags: Java, Method Override, Type Hierarchy View of Eclipse, super
34

Java Final Keyword

Preview

034-Java Final Keyword.mp4_thumbs

 

This video explains the usage of java’s final keyword. It explains how one can define constant, stop further inheritance and overriding.
Tags: Java, Final Keyword, stop sub-classing, stop overriding
35

Casting Between Objects

Preview

035-Casting Between Objects.mp4_thumbs

 

In this video, we will look at type casting in Java. The video first shows casting example on primitive data types. Then moves to perform type casting through Java object references. It also talks about the problems involved in type casting and shows hot to perform type casting safely. Throughout video, we will learn ‘Implicit’ and ‘Explicit’ castings.
Tags: Java Type Casting, Java Primitive, Java Reference, Implicit Casting, Explicit Casting
36

instanceOf Operator

Preview

036_InstanceOf Operator.mp4_thumbs

 

This video talks about instanceOf operator in Java. You will see how Runtime Type checking is performed using this operator.
Tags: Java, instanceOf, Runtime Type Checking, Java RTTI
37

Enumerations in Java

Preview

037_Enumerations in Java.mp4_thumbs

 

In this video we will see how to define and use Enumerations in Java. The video shows adding an enumeration as a class member.
Tags: java, Enumaration
38

Abstract Classes in Java

Preview

038_Abstract Class.mp4_thumbs

 

This video explains how to Use Abstract Class and Abstract Methods in java. It also shows how an abstract class is left as half implemented and how the sub-class fully defines the unimplemented methods.
Tags: Java, Abstract Class, Abstract Method
39

Interfaces in Java

Preview

039_Interfaces in Java.mp4_thumbs

 

In this video, we will study how to create and use interfaces in Java. This video show how to implement multiple interfaces and then use the created interfaces using eclipse IDE.
Tags: Java, Interfaces, Create Interface, Implement Interface, Implement Multiple Interfaces

Categories: C++

Do you like this Example? Please comment about it for others!!

This site uses Akismet to reduce spam. Learn how your comment data is processed.