#60 Wrapper Class in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Check out our courses:
    Java Full Stack and Spring AI - go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    DevOps with AWS: From Basics to Mastery : 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 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 : github.com/nav...
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    Discord : / discord
    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

ความคิดเห็น • 61

  • @bijenadhikari
    @bijenadhikari ปีที่แล้ว +10

    My one and only programming teacher in the world. Love from Nepal

  • @zr0724
    @zr0724 2 ปีที่แล้ว +12

    these are much better than the old ones , i love them , these are short and much fun to watch

  • @Sedeerah
    @Sedeerah ปีที่แล้ว +7

    This is gold. Thank you!

  • @Wisdomizer
    @Wisdomizer 2 ปีที่แล้ว +39

    It can help us understand, the important question in the interview - Difference between primitive type variable and a wrapper class for ex. int and Integer.

    • @LokeshM-q9v
      @LokeshM-q9v 11 หลายเดือนก่อน +1

      so, how can you differentiate in one single line?

    • @zomssingh8744
      @zomssingh8744 11 หลายเดือนก่อน

      ​@@LokeshM-q9va class who wrap primitives into objects form
      Or
      Predefined class of java which contains primitive data type

    • @gowthamivallabhadasu2523
      @gowthamivallabhadasu2523 11 หลายเดือนก่อน

      @@LokeshM-q9v As per my understanding, if you want to store simple values, use primitive. But when you want to leverage OOPS or take advantage of OOPS, use wrapper classes. The memory usage of primitive is smaller. for example int is 4 bytes. but Integer is an object so it occupies some good amount of space in the heap memory. You must use Wrapper classes when working with collections.

  • @anudeepthodupunoori7115
    @anudeepthodupunoori7115 2 ปีที่แล้ว +40

    I asked chatGPT to suggest good youtube channel to learn python and it shows your channel in top 5 .. 👏👏
    But i already learned python from ur channel 😂

  • @nikhilagrawal9217
    @nikhilagrawal9217 ปีที่แล้ว +2

    Thank you this is very helpful for the interview.

  • @AravStark
    @AravStark ปีที่แล้ว +12

    int num = 7; // normal assignment
    Integer num1 = new Integer(num); // boxing
    Integer num11 = num; // auto-boxing
    int num2 = num11.intValue(); // unboxing
    int num2 = num11; // auto-unboxing

  • @anonymous.reddy0
    @anonymous.reddy0 ปีที่แล้ว +1

    thanks a lot don't stop making videos we are waiting

  • @sravanit2002
    @sravanit2002 ปีที่แล้ว

    Thank you it's very helpful

  • @ahmadabadi_jainil
    @ahmadabadi_jainil ปีที่แล้ว +1

    Thank you so much sir ❤❤

  • @monishzeek5862
    @monishzeek5862 ปีที่แล้ว +1

    Pls upload javascript course like you upload for java

  • @immortal_here
    @immortal_here 11 หลายเดือนก่อน

    Bruh, thanks a lot , day after tomorrow is my cs examination in ICSE 10 and I was confused in this wrapper class . This helped me a lot

    • @savage_001
      @savage_001 5 หลายเดือนก่อน

      Ye btech ka syllabus 10th me padh rahe ho tmlog 😢😢

    • @immortal_here
      @immortal_here 5 หลายเดือนก่อน +1

      @@savage_001 padh ke pass bhi ho gya with 97/100 in cs

  • @yashuy3279
    @yashuy3279 ปีที่แล้ว +1

    Thank you, Sir.

  • @randomperson-yj1xo
    @randomperson-yj1xo 10 หลายเดือนก่อน

    Thank you, can you do a video with programming questions? so that children can have revision?

  • @ajayghode3602
    @ajayghode3602 หลายเดือนก่อน

    Thank You.

  • @ritwikdurga3855
    @ritwikdurga3855 2 ปีที่แล้ว +1

    Sir are these tutorials different from the ones previously(3yrs ago) tutorial playlist
    bcuz I am watching them

  • @basudevpaul8417
    @basudevpaul8417 ปีที่แล้ว

    ParseInt wala achha laga : ).

  • @unemployedcse3514
    @unemployedcse3514 7 หลายเดือนก่อน

    awesome ❤

  • @xurdeor3247
    @xurdeor3247 ปีที่แล้ว

    similarly
    // Converting Integer to String
    Integer myInt = 456;
    String str = myInt.toString();

    • @MoeMoe-qr7od
      @MoeMoe-qr7od ปีที่แล้ว

      I think , better use String.valueof();

  • @Bdbdjdidnbwk
    @Bdbdjdidnbwk 11 หลายเดือนก่อน +1

    and now, we can't use new Integer anymore :)

  • @aswiniavula8573
    @aswiniavula8573 6 หลายเดือนก่อน +1

    what is the tool name that you are using

  • @christhelemaque4187
    @christhelemaque4187 2 ปีที่แล้ว

    I want spring boot update I can’t wait to see ya content

  • @rayananaresh3125
    @rayananaresh3125 ปีที่แล้ว +2

    Bro what platform are you using to write the code
    Pls tell and share with me

    • @salmanrizwan9076
      @salmanrizwan9076 ปีที่แล้ว

      Visual Studio Code is the IDE he's using

  • @rameshblindlifestyle
    @rameshblindlifestyle 2 ปีที่แล้ว +6

    💗 హాయ్ సార్ 🖤 కళ్ళతో చూడలేకపోయినా విని అర్థం చేసుకుంటూ ఉన్నాను కళ్ళు లేవు కదా కామెంట్ ఎలా పెట్టారు అనే డౌట్ ఎవరికైనా వస్తే Ramesh blind అనే టైటిల్ పైన ఉన్న వీడియోస్ చూడండి

  • @jaisuriya9552
    @jaisuriya9552 ปีที่แล้ว

    Integer b = (Integer) a ;
    what about it sir :>

  • @PipsMastery
    @PipsMastery 8 หลายเดือนก่อน

    Sir how did you get that Integer file containing all the infomartion about it on vs code?

  • @zulfiqar7967
    @zulfiqar7967 2 ปีที่แล้ว +1

    Any blockchain course??

  • @susobhandas18
    @susobhandas18 ปีที่แล้ว

    Sir, Why do we initialize object?

    • @SaiErukulla
      @SaiErukulla ปีที่แล้ว

      To access the value by passing object reference variable in sout

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 2 ปีที่แล้ว

    hello sir, i need to learn spring from scratch, then go to spring boot, what is the path?

  • @jagadeeshsadam9990
    @jagadeeshsadam9990 2 ปีที่แล้ว +1

    Sir please upload C# video also .

  • @MdAzharuddin-h3u
    @MdAzharuddin-h3u 10 หลายเดือนก่อน

    when i taken as integer as string and printing directly without converting its working fine how

  • @subhanishaik7745
    @subhanishaik7745 ปีที่แล้ว +3

    durga sir having good teaching skills and less technical skills

  • @Mary__b46
    @Mary__b46 6 หลายเดือนก่อน

    The Bitcoin transfer is a done deal-time to celebrate!

  • @mahendrarajv3892
    @mahendrarajv3892 2 ปีที่แล้ว

    Hi bro explain about how to create ear file because no one can explain properly video if you can explain easy to understand this is my queries

  • @tusharrawat859
    @tusharrawat859 2 ปีที่แล้ว +2

    Which ide is this

  • @vijayt8844
    @vijayt8844 2 ปีที่แล้ว

    Hii i need small query..
    How to log out user if the login is already present in another browser or another window... Suggest me

    • @lavanyad9266
      @lavanyad9266 3 หลายเดือนก่อน

      You can use windows handle in selenium

  • @AlokVlogs07
    @AlokVlogs07 หลายเดือนก่อน

    0:31 .

  • @subhanishaik7745
    @subhanishaik7745 ปีที่แล้ว +1

    u have very good technical skills and less teaching skills.

  • @Pavankumar-xl4ov
    @Pavankumar-xl4ov ปีที่แล้ว +1

    oh why you are teaching the same topic again, is it just for the money or we will get anything extra from this video

  • @iIrfanhussain
    @iIrfanhussain 2 ปีที่แล้ว

    discord like doesnot work

  • @prabinlamsal74
    @prabinlamsal74 7 หลายเดือนก่อน

    But what is wrapper class? lol

    • @Alonkete
      @Alonkete 7 หลายเดือนก่อน

      Lund

  • @laljibhaitalpada3950
    @laljibhaitalpada3950 2 ปีที่แล้ว +1

    India ko coding sikhana hai to hindi bolo.....🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳

    • @nomadvishal1306
      @nomadvishal1306 ปีที่แล้ว +10

      Interview crack krna h toh English sikho!!

  • @azmathkhan7619
    @azmathkhan7619 ปีที่แล้ว

    i am unsubscribe you because your making paid course

  • @sravanit2002
    @sravanit2002 ปีที่แล้ว +1

    Thank you it's very helpful