Hi,
what is use of volatile and transient variable ? which scenario we use the volatile and transient variable ?
can anybody tell with realtime example ?
Type: Posts; User: sivaprakash
Hi,
what is use of volatile and transient variable ? which scenario we use the volatile and transient variable ?
can anybody tell with realtime example ?
here simple program.
1. public class Excep16 {
public static void main(String[] args) {
try{
for(int cnt = 0; cnt < 5; cnt++){
if(cnt == 5) throw new MyException("number is...