File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes object and instance variables can change their state Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

object and instance variables can change their state

Tomendra Singh
Ranch Hand

Joined: Jun 28, 2008
Posts: 47
hi all,
i want to understand this statement "object and instance variables can change their state"

please help me to understand it with any simple code example(code can be ruff idea,i don't need necessarily any must run code )

thank you very much.


Strength Is Life,Weakness Is Death- Swamy Vivekanand.
SCJP 5.0(87%)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36475
    
  16
Virtually the same question as here. Please don't ask the same question twice. Closing thread.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: object and instance variables can change their state
 
Similar Threads
finding class attributes in a hash set
Encapsulation
final Objects .....
Singleton class and instance methods
State Pattern