Check out our courses:
Enterprise Java Spring Microservices: https://go.telusko.com/enterpriseJava
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: https://go.telusko.com/udemyteluskosp...
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopy...
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodo...
website : https://courses.telusko.com/
In this lecture we are discussing about wrapper class:
if you want to store integer value you store in int
java provide primitive data type
thats why java is 99.9 % object oriented programming
primitive data types helps us to improve the performance
but certain feature are work only when we work with objects
for collection framework -- we need non primitive type data as input
byte -Byte
int - Integer
long -Long
char- Character
double -Double
float -Float
boolean -Boolean
Boxing:It is manual method to convert primitive type data into non-primitive type .
e.g
int num=7;
Integer num1=new Integer(8); //boxing
UnBoxing: It is manual method to convert non-primitive data type to primitive type.
e.g
int num2=num1.intValue(); //unboxing
AutoBoxing:It is automatic conversion of primitive type data into non-primitive data type.
int num3=5;
Integer num4=num3; //autoboxing
AutoUnBoxing:It is automatic conversion of non primitive type data into primitive data type.
int num5=num4; //autounboxing
int num=7;
how to store data as Object
Integer num1=new Integer(8); //this syntax is depreciated
Integer num1=Integer.valueOf(8); //Now we use this syntax
Integer num1=8; //autoboxing
int num2=num1.intValue();//unboxing
int num3=num1; //autounboxing
--convert string into int type using parseInt
String str="12";
int num4=Integer.parseInt(str);
--Convert number into String
String str1=Integer.toString(23); //convert number into string
Github repo : https://github.com/navinreddy20/Javac...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
Discord : / discord
Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko
More Learning :
Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6
JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq
Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA
Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB
NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L
Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.telusko.com