Kwik Core Java

Are there any other classes whose objects are immutable?

Yes, classes like Character, Byte, Integer, Float, Double, Long... called Wrapper classes are immutable. Classes like BigInteger, BigDecimal are also immutable.

at 18:54:00
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2016 (70)
    • ►  August (2)
    • ▼  July (14)
      • Singleton design pattern in Java
      • How to perform multiple tasks by multiple threads ...
      • How to perform single task by multiple threads?
      • What if we call run() method directly instead star...
      • Can we start a thread twice ?
      • Broadcast receiver runs in which thread, by default?
      • How many types of memory areas are allocated by JVM?
      • What is difference between JDK,JRE and JVM?
      • Important methods of StringBuffer class
      • Java String class methods
      • Are there any other classes whose objects are immu...
      • What is the difference between String and StringBu...
      • Explain the difference between the following two s...
      • What is object reference?
    • ►  June (54)
Simple theme. Powered by Blogger.