Creating and using Variables in Java




This video tutorial explains how to create and use variable in java programming language.

You will learn the syntax of creating variables in different ways, how to create integer ( including byte,short,int,long types ), floating point ( including float,double ),character i.e char, Boolean variable and also how to access them in detail with example.


package LearningJava;

public class Programming {
 public static void main(String[] args){  
  boolean areyoumarried = true;  
  System.out.println(areyoumarried);  
 } 
}

Back To Top