Use of UncaughtExceptionHandler in java.

Since every thread runs in it’s own stack in java the main thread will not come to know the status of Thread started by it. Programmer can implement an interface named UncaughtExceptionHandler to get a call back from JVM if an Exception occurs in a given thread and its not handled properly. A simple implementation […]
Continue reading…

 

How to find the compiler version from a class file?

There is a tool called javap to find out the compiler version and much more from a class file. See the below given console output to get more details. javap is located in %JAVA_HOME%/bin.

Continue reading…