Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
What is the difference between boxing and unboxing...
1.
What is the difference between boxing and unboxing in Java?
Answer»
Basis
Boxing
Unboxing
Basic
The object type refers to its
VALUE
type.
It is the
PROCESS
of fetching value from the boxed object.
Storage
The value
STORED
on the stack is
COPIED
to the object stored on the heap memory.
The value of the object stored on the heap memory is copied to the value type stored on the stack.
Conversion
Implicit
Explicit
Example
Int n = 24;
Object
OB
= n;
Int m = (int) ob;
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What are Java doGet () and doPost () methods?
How garbage collection makes Java more memory efficient?
What is the use of overloading and overriding in Java?
What is the difference between boxing and unboxing in Java?
What is the difference between Errors and Exceptions in Java?
Which one is better, setter injection or constructor injection?
Can you override a static method in Java?
How many ways to handle exceptions in the Spring MVC Framework?
What are the different methods of session management in Servlet?
How can we detect and avoid deadlock in Java?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies