answersLogoWhite

0

A special case of the more general concept of an immutable object - an object that cannot be modified after it is created.

For the case of an immutable image, you can read the image but not change it.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Are Wrapper classes immutable or mutable?

In java.lang all Wrapper classes are immutable .


What is mutable in java?

It means that something can be changed after it is created. Immutable means that it can't be changed.


When data cannot be changed after a program is compiled?

When data cannot be changed after a program is compiled, it is typically referred to as "immutable" data. This means that once the data is set, it cannot be altered, which helps to prevent unintended side effects and enhances program reliability. Immutable data structures are commonly used in functional programming languages and can also improve performance in concurrent programming by eliminating the need for locks. Examples include constants in programming languages and immutable collections.


How can you create user defined immutable object in java?

Define your own class which will have all members final & methods to return values of variable only /* javavishal.blogspot.com This code shows the way to make a class immutable */ // The immutable class final class VImmutableClass { // instance var are made private & final to restrict the access private final int prop1; // Constructor where we can provide the constant value public VImmutableClass(int vprop1) { prop1 = vprop1 } // provide only methods which return the instance var // & not change the values public int getProp1() { return prop1; } } // class MyImmutable public class MyImmutable { public static void main(String[] args) { VImmutableClass obj1 = new VImmutableClass(3); System.out.println(obj1.getProp1()); // there is no way to change the values of count & value- // no method to call besides getXX, no subclassing, no public access to var -> Immutable } }


How do you insert logo image on signature from rediffmail?

You can download the image from rediff mail. Then can insert this image as image source.

Related Questions

What is a sentence for the word immutable?

There are certain immutable truths in life.


Are Wrapper classes immutable or mutable?

In java.lang all Wrapper classes are immutable .


When was Play the Immutable Truth created?

Play the Immutable Truth was created in 2004.


Write a sentence for the word immutable?

unchangeable, never changing. Immutable object is an object whose state cannot be modified after it is created


What is immutable in a sentence?

The Constitution is immutable; however, amendments can be added to alter the previous statements.


How should you use immutable in a sentence?

Until someone invents time-travel, history will be immutable.


What things are immutable?

Immutable things are those that cannot be altered or changed after they are created. In computing, for example, immutable data structures, like strings or tuples in certain programming languages, cannot be modified once instantiated. In a broader context, concepts such as laws of physics or certain historical events are also considered immutable because they remain constant and unchangeable over time.


What is a word that has muta in it?

* mutant * mutate * immutable


What is a Synonym for the word immutable?

flexible, invariable, rigid


Which phrase defines immutable best?

c.not changeable


What is a sentence using the word immutable?

Some laws are immutable, no matter how hard lawyers and their clients want to challenge them.Civilization has always been challenged by the immutableforces of nature.


Where can one watch immutable objects?

An immutable object is classed in Java programming as an object that cannot be changed after it is made. YouTube has videos that can be viewed on this subject as well as Vimeo.