No video

#6 Data types in Java

  Рет қаралды 287,791

Telusko

Telusko

Күн бұрын

Check out our courses:
Complete Java Developer Course Batch-3: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
website : courses.telusk...
In this lecture we are discussing
1) datatypes for given variable
a)Types of data-types?
b)primitive data types
c)why do we need different type of integer type?
d)how to create variable of different data types?
2) range and way to declare different data variable
#1
a) Datatypes are categories into primitive and non-primitive datatype.
But in this lecture, we are take all concept upon primitive data type.
b) There are 8 primitive datatype
integer ---byte, short, int, long
float --- float , double
character ---char
boolean --- boolean
c) why do we need different type of integer ?
= there are range for each type. for int --4 bytes ,long --8 bytes, short --2bytes byte --1byte
d) How to create variable of different data type?
= int a=10; byte b=4
= dataType variableName = value;
integer variable declaration
int a=5;
long b=600l; // e.g 578l, 100000l represent long integer type
byte c=127;
short s=128;
float vs double
=double have more precision than float by default java support double.
=declare variable of float and double type
--double a=5.6;
--but float b=5.6; //give error
--correct way float b=5.6f;
character representation
= char ch='a'; //using single quotes on character we can declare char type of variable
boolean representation of variable
= boolean result=true; there are only two value of boolean either true or false.
=In other language like c and c++ -- 0 is treated as false and non zero number treated as true but it is not in java.
{byte, short, int, long, float, double, char, Boolean }
since java is statically type or say strongly type language therefore we need
to mention datatype for each variable for declaring variable.
e.g int i=5; float f=2.5f;
In java integer are by default for integer int type;
for real number by default double
#2
Range and way to declare different data type variable
int i=5;// 4 bytes ---32 bytes -- -2147483648 to 2147483647
short s=5;//2 bytes -- 16 bytes -- -32768 to 32767
byte b=5;//1 byte -- 8 bytes -- -128 to 127
long l=5;//8 bytes -- 64 bytes -- -9223372036854775808 to 9223372036854775807
float f=5.5f;//4 bytes -- 32 bytes -- 1.4e-45 to 3.4028235e+38
double d=5.5;//8 bytes -- 64 bytes -- 4.9e-324 to 1.7976931348623157e+308
char c='a';//2 bytes -- 16 bytes -- 0 to 65535
boolean check=true; //value is either true or false
ASCII - American Standard Code for Information Interchange
Github repo : github.com/nav...
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Пікірлер: 45
#7 Literal in Java
4:22
Telusko
Рет қаралды 230 М.
#5 Variables in Java
11:45
Telusko
Рет қаралды 359 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 118 МЛН
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 18 МЛН
Primitives Data Types In Java - All the Primitives And What They Do
10:24
Java Builder Pattern Explained in 3 Minutes
3:19
Jack Hodkinson
Рет қаралды 13 М.
#8 Type Conversion in Java
12:33
Telusko
Рет қаралды 271 М.
P13 - Data types in Java | Core Java |
47:46
H Y R Tutorials - Telugu
Рет қаралды 188 М.
#4 How Java Works
12:03
Telusko
Рет қаралды 446 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 521 М.
#26 Stack And Heap in Java
12:37
Telusko
Рет қаралды 240 М.
#9 Arithmetic Operators in Java
10:16
Telusko
Рет қаралды 180 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН