In this video we have demonstrate Autoboxing and Unboxing in Java.
Code
class Autoboxing_Unboxing
{
public static void main(String args[])
{
char ch='A';
System.out.println("Ch : "+ch);
Character obj1 = new Character(ch); //Autoboxing
Character obj2 = ch; //Autoboxing
System.out.println("Object 1 : "+obj1);
System.out.println("Object 2 : "+obj2);
char ch2 = obj1; //Unboxing
System.out.println("Ch 2 : "+ch2);
}
}
Please subscribe our YouTube channel and click on bell Icon.
Follow us on Instagram : / aimcomputeracademydigboi
Join our Facebook group : / 536687250112679
Like our Facebook page : / aim-ambition-in-mind-147598225929076
#java #javaprogramming #javatutorial
On this page of the site you can watch the video online Autoboxing And Unboxing In Java || Wrapper Class In Java || Wrapper Class Function || Java Tutorials with a duration of hours minute second in good quality, which was uploaded by the user Aim Computer Academy 06 February 2023, share the link with friends and acquaintances, this video has already been watched 69 times on youtube and it was liked by 7 viewers. Enjoy your viewing!