filmov
tv
Java Tutorial For Beginner | Datatype, Variable, Keyword & Identifier To Java In Bangla Class -02

Показать описание
Java Tutorial For Beginner | Datatype, Variable, Keyword & Identifier To Java In Bangla Class -02
Code:
public class Main
{
int a=10;//instance
static double b=20.5;
public static void main(String[] args)
{
Main m=new Main();
boolean c=true;
}
}
Welcome to our Java tutorial on data types, variables, keywords, and identifiers!
In this video, we'll be covering the fundamentals of these important concepts, which are essential to writing any Java program.
First, let's talk about data types. In Java, data types are used to classify different types of data, such as integers, decimals, and characters. The type of data that a variable can hold is determined by its data type.
Next, we have variables. A variable is a named location in a program where a value can be stored. In Java, variables must be declared before they can be used, which means you must specify the data type and the name of the variable.
Keywords are also an important part of Java programming. A keyword is a reserved word in Java that has a specific meaning to the compiler. Some examples of Java keywords are "public," "class," and "void." You cannot use keywords as variable names because they are reserved for the compiler.
Finally, we have identifiers. An identifier is a name given to a variable, function or any other item in a Java program. Identifiers can be made up of letters, digits, and underscores, and must begin with a letter, an underscore, or a dollar sign. They are case-sensitive, so "age" and "Age" are considered to be different identifiers.
By understanding data types, variables, keywords, and identifiers, you'll be well on your way to becoming a proficient Java programmer. Thanks for watching!
Timecodes
0:00 - Intro
0:20 - Datatype
1:53 - Variable
5:34 - Datatype & Variable Practical
9:53 - Keyword
13:29 - Identifier
14:19 - End
Code:
public class Main
{
int a=10;//instance
static double b=20.5;
public static void main(String[] args)
{
Main m=new Main();
boolean c=true;
}
}
Welcome to our Java tutorial on data types, variables, keywords, and identifiers!
In this video, we'll be covering the fundamentals of these important concepts, which are essential to writing any Java program.
First, let's talk about data types. In Java, data types are used to classify different types of data, such as integers, decimals, and characters. The type of data that a variable can hold is determined by its data type.
Next, we have variables. A variable is a named location in a program where a value can be stored. In Java, variables must be declared before they can be used, which means you must specify the data type and the name of the variable.
Keywords are also an important part of Java programming. A keyword is a reserved word in Java that has a specific meaning to the compiler. Some examples of Java keywords are "public," "class," and "void." You cannot use keywords as variable names because they are reserved for the compiler.
Finally, we have identifiers. An identifier is a name given to a variable, function or any other item in a Java program. Identifiers can be made up of letters, digits, and underscores, and must begin with a letter, an underscore, or a dollar sign. They are case-sensitive, so "age" and "Age" are considered to be different identifiers.
By understanding data types, variables, keywords, and identifiers, you'll be well on your way to becoming a proficient Java programmer. Thanks for watching!
Timecodes
0:00 - Intro
0:20 - Datatype
1:53 - Variable
5:34 - Datatype & Variable Practical
9:53 - Keyword
13:29 - Identifier
14:19 - End