Currently browsing tag

Core Java, Page 6

java-thumbnail

ThreadLocal in Java

ThreadLocal is one of the rarely used class in Java. I found it is one of the powerful class in Java on …

java-thumbnail

Comparing Objects in Java

Comparing Objects in Java In Java comparing two value object is not straight forward. Here we will see how we can compare …

java-thumbnail

Generation of Random Numbers

Random numbers in java can be generated either by using the Random class in java.util package or by using the random() method …

java-thumbnail

Creating user defined exceptions

Though Java provides an extensive set of in-built exceptions, there are cases in which we may need to define our own exceptions …