Tuesday, March 31, 2020

Java Class and Objects

We know that Java is an Object-Oriented programming language. Everything in Java revolves around a class. But before going much further in the study of Java, you need to be familiar with the most fundamental OOP concepts which are Java Class and Java Object. Java Classes and Objects...

Saturday, March 28, 2020

How to check if two String are Anagram of each other - Coding Problem

Hello guys, if you are preparing for Coding interviews then you already know that String is one of the most popular topics. You will bound to get some string-based coding problems on interviews. If not, you have come to the right place becuase we'll look one of the...

Friday, March 27, 2020

Difference between static and non static nested class in Java - Inner class

Static vs non Static class in Java In Java you can make a class either static or non static. Now what is difference between making a class static vs non static? well there is lot of difference between them. First of all there are two kinds of class...

Thursday, March 26, 2020

5 difference between Hashtable and HashMap in Java

Hashtable vs HashMap in Java Hashtable and HashMap are two hash based collection in Java and used to store objects as key value pair. Despite being hash based and similar in functionality there are a significant difference between Hashtable and HashMap and without understanding those difference if you...

Tuesday, March 24, 2020

Steps to Preparing for Oracle 1Z0–809 Certification Exam

OCPJP 1Z0-809 Overview Java 8 Certification or OCJP Certification Syllabus (Oracle Certified Java Profession) has two certification exams. The first certification exam is called OCA (Oracle Certified Associate 1Z0-808). This java certification is known as Associates Certification. The second level exam is a slightly advanced level certification at...

Monday, March 23, 2020

JVM

7 JVM arguments of Highly Effective Applications

In this article, we are highlighting seven important JVM arguments that you may find it useful. 1. -Xmx and -XX:MaxMetaspaceSize -Xmx is probably the most important JVM argument. -Xmx defines the maximum amount of heap size you are allocating to your application. (To learn about different memory regions...

Saturday, March 21, 2020

What is double colon (::) operator in Java 8 - Example

The double colon (::) operator is known as the method reference in Java 8. Method references are expressions which have the same treatment as a lambda expression, but instead of providing a lambda body, they refer to an existing method by name. For example, to print all elements...

Friday, March 20, 2020

Abstract Class vs Interface

In Java, the Abstract classes and interfaces are fundamental building blocks as they both are used to implement one of the essential concepts of Object-Oriented Programming that is, Abstraction. Though both of them are used for Abstraction, they differ from each other, and we cannot use them interchangeably....

Thursday, March 19, 2020

Java Comparator Interface

There are many situations when we often need to compare two values in our Java programs. Comparing primitive values like int, char, float, boolean, etc., is very easy and we can compare them using the comparison operators like <, >, ==, etc. But what if we want to...

Wednesday, March 18, 2020

Java Garbage Collection

Garbage Collection is one of the most important features in Java which makes it popular among all the programming languages. The process of garbage collection is implicitly done in Java. Therefore, it is also called Automatic Garbage Collection in Java. The programmer does not need to explicitly write...

Pages (26)1234567 »