About 108,000 results
Open links in new tab
  1. java - Immutable class? - Stack Overflow

    Jul 2, 2010 · How can one make a Java class immutable, what is the need of immutability and is there any advantage to using this?

  2. How to create immutable class in java - Stack Overflow

    Dec 25, 2013 · How can create immutable class in java. if Student class has a relationship (address) how to create immutable class. I want to make the class below immutable final …

  3. java - Examples of immutable classes - Stack Overflow

    Feb 25, 2011 · All classes of java.time except DateTimeException are immutable. Most of the classes of the subpackages of java.time are immutable too. One could say the primitive types …

  4. java - Why do we need immutable class? - Stack Overflow

    The Java platform libraries contain many immutable classes, including String, the boxed primitive classes, and BigInte- ger and BigDecimal. There are many good reasons for this: Immutable …

  5. How to create immutable objects in Java? - Stack Overflow

    Jun 10, 2011 · How to create immutable objects in Java? Which objects should be called immutable? If I have class with all static members is it immutable?

  6. java - What is meant by immutable? - Stack Overflow

    Nov 11, 2008 · What exactly does immutable mean - that is, what are the consequences of an object being mutable or immutable? In particular, why are Java's Strings immutable? My …

  7. immutability - Make immutable Java object - Stack Overflow

    Here are few rules, which helps to make a class immutable in Java : 1. State of immutable object can not be modified after construction, any modification should result in new immutable object.

  8. How to make an immutable class in Java? - Stack Overflow

    May 9, 2018 · If Student was an immutable class, the original getTutees() and the original constructor would be enough.

  9. How to create an immutable class in Java without using final …

    Mar 23, 2011 · Possible Duplicate: Implement a final class without the “final” keyword I want to create an immutable class in Java without using the final keyword.

  10. java - String is immutable. What exactly is the meaning ... - Stack ...

    Jan 10, 2012 · Java String is immutable, String will Store the value in the form of object. so if u assign the value String a="a"; it will create an object and the value is stored in that and again if …