10 Dec

Java: Enum

Notice the enum keyword which is used in place of class or interface. The Java enum keyword signals to the Java compiler that this type definition is an enum.

public enum Level {
    HIGH,
    MEDIUM,
    LOW
}
Level level = Level.HIGH;
More
10 Dec

Immutable class in Java

Immutable object offers several benefits in multi-threaded programming and it’s a great choice to achieve thread safety in Java code. here are few rules, which helps to make a class immutable in Java :

More
06 Dec

Big-O Complexity Chart

More
01 Dec

Software design patterns in two pages

In software engineering, a software design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. It is not a finished design that can be transformed directly into source or machine code. It is a description or template for how to solve a problem that can be used in many different situations. Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system.

More
01 Dec

Java memory model

The Java memory model used internally in the JVM divides memory between thread stacks and the heap. This diagram illustrates the Java memory model from a logic perspective:

The Java Memory Model From a Logic Perspective

More
16 Nov

How to prepare to Java Interview

More
16 Nov

 BFS vs DFS

More