aspose file tools
The moose likes Beginning Java and the fly likes What is autoboxing in java...? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 37
Hi everyone,

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

Thanks & Regards,
ABHIJIT
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

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: 8441

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


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

Joined: Sep 07, 2008
Posts: 676

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: 19216

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


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What is autoboxing in java...?
 
Similar Threads
Help me!!!!
Wrapper class variable in switch
ArrayList
What is Autoboxing?
Pure OO