transient and volatile in Java
What is the meaning of transient and volatile in java, and what's the difference between them?

for example:
private transient int;
private volatile int;


transient and volatile in Java
===

What is the meaning of transient and volatile in java, and what's the difference between them?

for example:
private transient int;
private volatile int;

