Java Basic Go Back Working with Java Data types views 09:42 Now we know what is meant by a variable and we have also understood what is the scope of the various variables. We have also had a brief introduction to the data types in Java. Let us now go in details of how to declare a variable and assign values to the same. Understanding variables and how to use them is very fundamental to Java programming. Datatypes and Variables Types of Variables Defining the structure of java class Syntax to import package Working with Java Data types Object reference variable String builder class and contructor Methods of string builder class Using Operators and Decision Constructors Using Increment and Decrement Operators Using Right shift operators Using Parenthesis to override operator precendence