Read only Variable:-


-A variable whose values cannot be modified once after initialization is known as read only variable & must be declared using “read only” keyword.

-A read only variable need not to be  initialized at the time of its declaration like a constant. It can be also be initialized under a constructor but once after initialization ,it is not possible to modify the value.

-The behavior of a read only variable is a similar to the  behavior of a non static  variable i.e. ,maintain a separate copy for each copy that is created .The only difference between two is : non static variable can be modified but not read only.

-A constant variable is a fixed value for the complete class whereas a read only variable is a fixed value specific to one object of the class.