Core java Archive

Spring Boot AngularJS Example

In this post, we are going to see how to create Spring boot AngularJS example. We will use Spring boot 1.5.3 Release version, it comes with hibernate 5. We will create a Spring boot AngularJS …

Variables in java

Variable is nothing but name of memory location in java.Each variable has the specific data type which defines size and layout of variable’s memory. There are three kinds of variables in java. Local Variables Instance …

Access modifiers in java

The access modifiers in java define accessibility (scope) of variable, method, constructor or class. There are 4 types of access modifiers in java. Public Private Protected Default You don’t have to explicitly put default modifier.JVM …

Super keyword in java with example

Super Keyword in java is used to refer to object of the immediate superclass.Super keyword is used in the context of inheritance.Super keyword in java can be used at three level: Variable level Constructor level …

this keyword in java with example

this keyword in java is used to refer to current object or instance of class. It can be used in constructor to call any other overloaded constructor but this keyword should be the first statement in …

Java CyclicBarrier Example

In this post, we will see about CyclicBarrier in java. CyclicBarrier was introduced in Java 5 with other concurrency utils such as CountDownLatch, ConcurrentHashMap and BlockingQueue. CyclicBarrier is synchronized aid which allows set of threads …

Abstraction in java with example

Abstraction is a concept of exposing only essential details and hiding implementation details. You can achieve abstraction using two ways in java. Abstract class(0 to 100% abstraction) Interface (100% abstraction) For example: When you search …

Interface in java with example

In previous post, we have seen abstract class in java which provides partial abstraction. Interface is one of the core part of java and is used to achieve full abstraction. Interface is generally used to …