permaculture playing cards
The moose likes Beginning Java and the fly likes What is autoboxing in java...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is autoboxing in java...?" Watch "What is autoboxing in java...?" New topic

What is autoboxing in java...?

Abhijit Kangale
Ranch Hand

Joined: Sep 17, 2009
Posts: 39
Hi everyone,

What is the meaning of autoboxing in java...?

Thanks & Regards,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

Java 5 Language Features: Autoboxing

Note that simple questions like this can quickly be answered by Google - try searching for "java autoboxing" for more links.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10817


I do not mean to sound rude or anything, but I have been noticing you are posting a lot of "what is..." and "how to..." type questions. Of course this would mean you are very keen on learning new stuff. However it might be a good idea to read

To get the most out of the Ranch, please do take out time to go through

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


I give you simple example. As you know List and when you declare list it add object.

In above code you can see when you declare primitive data type int to add list we have to convert into wrapper class or say object. That is use in Pre java 1.5 or upto java 1.4

but java 1.5 use Auto boxing and automatically convert into object or wrapper class that is called autoboxing.

in java1.5

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Rob Spoor

Joined: Oct 27, 2005
Posts: 20271

Autoboxing is Java Programming 101 these days. Moving to Beginning Java.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: What is autoboxing in java...?
jQuery in Action, 3rd edition