Recent posts

Comparable & Comparator

5 minute read

While writing the object-oriented programs, comparison of two instances of the same class is often required. Once instances are comparable, we can sort them ...

Configuring Preconditions

less than 1 minute read

You have two independent tables having no relationship between them, but you still want to create them in specific orders. To enforce order during the creati...

Java Serialization & Deserialization

6 minute read

Serialization lets you simply say “save this object state to the persistent store” you’d have to use one of the I/O classes to write out the state of the ins...

Java Formatters

5 minute read

Like all byte and character stream objects, instances of PrintStream and PrintWriter implement a standard set of write methods for simple byte and character ...

File Object

5 minute read

Objects of type File are used to represent the actual files (but not the data in the files) or directories that exist on a computer’s physical disk. First, l...