logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is Auto boxing and unboxing?


  • Correct Answer
  • Autoboxing is the process of converting a primitive type data into its corresponding wrapper class object instance Example: Integer number = new Integer (100); // number is now refers to the object 100 Unboxing is the process of converting a wrapper instance into a primitive type Example: Integer number = new Integer (100); int num = number;// without type casting number would be changed into int type 


  • Technology problems


    Search Results


    • 1. What are Native methods in Java?
    • Discuss
    • 2. What is the SimpleTimeZone class?
    • Discuss
    • 3. What is the Set interface ?
    • Discuss
    • 4. How do you decide when to use ArrayList and When to use LinkedList?
    • Discuss
    • 5. How do you traverse through a collection using its Iterator?
    • Discuss
    • 6. How does thread synchronization occurs inside a monitor?
    • Discuss
    • 7. Why do we need wrapper classes in Java?
    • Discuss
    • 8. What is Shallow and deep cloning in Java?
    • Discuss
    • 9. What is the similarity between Dynamic Binding and linking?
    • Discuss
    • 10. What is dynamic method dispatch?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment