Autoboxing and unboxing is a mechanism provided by Java to automatically convert primitive Data Type into its corresponding Wrapper Class Object and vice versa. Consider the Code below of the problem without Autoboxing and unBoxing. public …
Category: Technical
ArrayList is part of Collections Framework in Java and is a implementation of List Interface. As opposed to Java Array of fixed size. ArrayList in Java are resizable-arrays and provide various utility methods to perform add, …
As we have learned about Primitive Data Types and Classes in Java. It is a good time to dig into the details of String class in Java. String is a special Class in Java which is …
Constructors are the special methods in Java which gets executed as soon as we create an object of the Class. To create a Constructor in Class, you need to create a method with name same as …
Lets take a closer looks at methods in Java. As we have seen Class consist of state and behaviour. Methods are defined in Java Classes so alter the behaviour of objects. Let’s consider a Java code …
In this post we will configure a Spring project to use Thymeleaf along with Thymeleaf Layout Dialect (Thymeleaf Layout Dialect) We will use Bootstrap front end libraries to demonstrate responsive front end development with Spring and Thymeleaf. …
Java language revolves around the Object Oriented Programming (OOP), the base of OOP is Classes and Objects. This post is dedicated to Understanding the need for OOP and about Classes and how that works. As the …
Java Basics Java Primitive Data Types Operators in Java Control Flow : If:then and If:then:else statements Control Flow: For, while and do while loop in Java Arrays in Java Classes and Methods in Java Classes and …
1. Using Custom Method First we will write the manual method to compare two Java Arrays for Equality. The logic is pretty simple, first we compare the length of both Arrays in consideration and if that is equal …
We have created a sample String array with few String values to check for Duplicate. To Check the Duplicate we need to compare the current String value with rest of the values. The below code approaches …