
Pattern Matching in instanceof
Bye Bye Explicit casts
Search for a command to run...

Bye Bye Explicit casts

Switches in Java lacked an option to match a value based on an expression that is computed at runtime(similar to C). So the values against which a value can be matched should be constant known at compile time. Below is the current format of switch th...

Polymorph a step better

Immutable data carriers

Parallelization is being done to use the number of cores available in servers and to reduce the time taken for execution. But if race condition isn't handled properly for required variables, it could create unexpected issues in our application. First...

An inode is a file(everything in a Linux is a file!!!) which stores information on how and where data of a file is stored in blocks in the hard disk. If inode usage reaches 100%, no new files can be created in a server. Here is Wikipedia definition ...

In Object-Oriented programming language like java, an Object is created using a new keyword. But using the new keyword for all dependencies will make the class bind to that dependency for its whole lifetime. For example, consider a class which has a ...

With tomcat 8.xx and above, tomcat uses NIO2/APR as a connector by default which foregoes one thread for each incoming request model(BIO). It uses a common thread pool for accepting requests which then forwards the requests for processing threads if ...

Getting the current working directory(CWD) is one of the basic and most important features in a product. In Node.js, CWD can be obtained with either __dirname variable or process.cwd(). But the output returned by each command differs based on the fol...