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.


First Java Console Application


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

Java Class Object and its State And Behavior


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

Ternary Operator Explained with Example


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

Operator Precedence in Java


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

Java If Constructs



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

Switch Case in Java



This video explains how one can use 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

Java For Loop



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

While and Do While


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

The use of break and continue in Java


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

Labelled Break & Labelled Continue in Java




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

Creating Instance of An Object


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

One Object Two Reference


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

Java Method Call and Call Stack Primitive


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

Java Method Call and Call Stack Reference


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

Overloading Java Methods


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

Access Specifiers in Java


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

Constructors of Java



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

Default Constructor




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

Overloaded Constructors




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

Java ‘this’ reference


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

Static Members in Java



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

Static Methods in Java




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

Static Initializer Blocks in Java




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

Java Array Declare Initialize Iterate


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

Two Dimensional Array in Java




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

Array Of Objects in Java


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

Variables Argument Array in Java


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

Java Inheritance – An Introduction




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

Creating Packages in Java


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

Using Packages in Java


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

Access Specifiers in Java


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

Java Super Keyword Usage


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

Method Overriding in Java


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

Java Final Keyword


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

Casting Between Objects


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

instanceOf Operator


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

Enumerations in Java


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

Abstract Classes in Java


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

Interfaces in Java


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.