filmov
tv
Java Bangla Tutorial Part-07 | Variables And Data Types | Creative Coders | 2020

Показать описание
Follow Me:
----------------------------------------------------------------------------
In this tutorial you will know about data types and variables .
Subtopics
#What is variable?
#Declaration of variables.
#Initialization of variables.
#Rules of declaring variables.
#Data types.
#Scope of variables in java.
#Local variable
#Static Variables
#Instance Variables
#boolean
#integer
#float
#double
#method
#byte
#long
#short
#Primitive Data Types
#Non-Primitive Data Types
#Character
#dynamic Initialization
Int a=10; //Dynamic Initialization
What is Variables?
=======================
A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.
Rules of declaring variables
==========================
1.A variable name can consist of capital letters A-Z, lowercase letters a-z, digits 0-9, and two special characters such as underscore and dollar sign.
2.Names can also begin with ( $ ) and ( _ )
3.All java variables must be identified with unique names.
4.No space are allowed in the variable declarations.
5.Except underscore ( _ ) and dollar sign no special symbol are allowed in the middle of variable declaration.
6.Variable name always should exist in the left hand side of assignment operators.
7.Maximum length of variable is 64 characters.
8.Java keywords cannot be used as variable names.
9.Using ALL uppercase letters are primarily used to identify constant variables.
10.Remember that variable names are case-sensitive ("myVar" and "myvar" are different variables)
Local variable
==================
Local variables are a variable that are declared inside the body of a method.
Static Variables
=========================
Static variables are initialized only once, at the start of the program execution. These variables should be initialized first, before the initialization of any instance variables.
Instance Variables
========================
Instance variables are defined without the STATIC keyword .They are defined outside a method declaration. They are object specific and are known as instance variables.
----------------------------------------------------------------------------
In this tutorial you will know about data types and variables .
Subtopics
#What is variable?
#Declaration of variables.
#Initialization of variables.
#Rules of declaring variables.
#Data types.
#Scope of variables in java.
#Local variable
#Static Variables
#Instance Variables
#boolean
#integer
#float
#double
#method
#byte
#long
#short
#Primitive Data Types
#Non-Primitive Data Types
#Character
#dynamic Initialization
Int a=10; //Dynamic Initialization
What is Variables?
=======================
A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.
Rules of declaring variables
==========================
1.A variable name can consist of capital letters A-Z, lowercase letters a-z, digits 0-9, and two special characters such as underscore and dollar sign.
2.Names can also begin with ( $ ) and ( _ )
3.All java variables must be identified with unique names.
4.No space are allowed in the variable declarations.
5.Except underscore ( _ ) and dollar sign no special symbol are allowed in the middle of variable declaration.
6.Variable name always should exist in the left hand side of assignment operators.
7.Maximum length of variable is 64 characters.
8.Java keywords cannot be used as variable names.
9.Using ALL uppercase letters are primarily used to identify constant variables.
10.Remember that variable names are case-sensitive ("myVar" and "myvar" are different variables)
Local variable
==================
Local variables are a variable that are declared inside the body of a method.
Static Variables
=========================
Static variables are initialized only once, at the start of the program execution. These variables should be initialized first, before the initialization of any instance variables.
Instance Variables
========================
Instance variables are defined without the STATIC keyword .They are defined outside a method declaration. They are object specific and are known as instance variables.