This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is autoboxing in java...?" Watch "What is autoboxing in java...?" New topic
Author

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,
ABHIJIT
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171
    
    8

Abhijit,

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 http://faq.javaranch.com/java/SearchFirst

To get the most out of the Ranch, please do take out time to go through http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch


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

Joined: Sep 07, 2008
Posts: 684

Hi,

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
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is autoboxing in java...?
 
Similar Threads
Wrapper class variable in switch
Pure OO
What is Autoboxing?
ArrayList
Help me!!!!