-2

Strings are immutable, other than them, what are the objects which are immutable in java?

  • 2
    According to http://stackoverflow.com/questions/3112882/how-many-classes-are-there-in-java-standard-edition there are 4240 classes in Java. Do you want someone to iterate over all classes and find immutable ones? Really? – mostruash Sep 11 '14 at 06:41
  • possible duplicate of [Examples of immutable classes](http://stackoverflow.com/questions/5124012/examples-of-immutable-classes) – maba Sep 11 '14 at 06:42

1 Answers1

1
Byte, Double, Float, Integer, Long, Short 

are some of the objects that are immutable.

lxcky
  • 1,668
  • 2
  • 13
  • 26