/ Published in: Java
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 public class ThreadDemo { private static Logger logger = Logger.getLogger(ThreadDemo.class.toString()); static { public void run() { while (true) { try { logger.fine("Interrupted : " + e.getMessage()); } logger.info("job"); } } }).start(); } logger.info("start"); } }
Comments
                    Subscribe to comments
                
                