Profile cover photo
Profile photo
Rashid Noorani
94 followers
94 followers
About
Rashid's posts

Post has attachment
How to perform a task when JVM is shutting down?
Shutdown hook can be used to perform a task when JVM is shutting down. Shutdown hook will not work in following cases: Calling
System.exit(0)   Situations where the VM is shutting
down due to an external reason (ex. kill request from O/S) Due to a
resour...

Post has attachment
How to prevent JVM termination using System.exit()?
Can we prevent JVM termination occurring due to System.exit()? Yes, You can use security manager to prevent JVM termination occurring due to System.exit(). To get better understanding look at following code sample: Code: public class ExitEx {     public sta...

Post has attachment
Java 8 lambda expression made easy
Wait while more posts are being loaded