core java Tutorials, Tips & Tricks

How to Redirect Standard Output/Error in Java

System.out and System.err stream objects are mapped to “standard” output and error stream respectively. By default, Java display standard output/error on display console. Thus, when we print a statement using System.out: It prints the...

Java MD5 Hashing & Salting: Secure Your Passwords

Java MD5 Hashing & Salting: Secure Your Passwords

The MD5 Message-Digest Algorithm is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check data integrity....

Inner classes in Java, the mystery within.

Inner classes in Java, the mystery within.

Inner classes, also called Nested Classes, are nothing but classes that are defined within other classes. The nesting is a relationship between classes, not objects. Inner classes have clearly two benefits, name control &...