A jar file is simply a group of class files and their associated resources compressed in one file. When a defect occurs, one of the first questions we ask is what is the deployed version of a...
Posts by admin
null is nor an Object neither a type. It’s just a particular value, which can be assigned to any reference type. null references can only be used in a boolean test, to check if an object is...
When an exception occurs we need to do 2 mains things: information logging and reporting This should be combined with exception handling There are few things that we need to keep in mind...
There are different ways and classes in the JDK allowing you to generate random numbers, using some built-in methods: ThreadLocalRandom SecureRandom Random Math.random the algorithm...
Use of Private Constructor in Java A private constructor is used when you have a class that you don’t want to be instantiated by another class. The most common cases where a private constructor...
In every application, there are a number of constants that are widely used. And it makes sense to group them in the same class. Should we use java constants class or interface? We will see two...