Is integer immutable in java?



Is integer immutable in java?..

Answer / Sidharth Kumar

No, integers in Java are not immutable by default. However, the Integer wrapper class objects are immutable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why is the main method declared static?

1 Answers  


FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?

2 Answers  


Why to give the file name same as the public class name in java?

3 Answers  


Can we sort a map in java?

1 Answers  


Does java isempty check for null?

1 Answers  


What is t in parametric equations?

1 Answers  


heavy components means what?

4 Answers  


What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


What does sprintf return?

1 Answers  


what are different ways in which a thread can enter the waiting state? : Java thread

1 Answers  


What is boolean strategy?

1 Answers  


what is Remote Reference Layer ?

1 Answers  


Categories