Monday , December 10 2018
Home / Java

Java

Java Programming Tutorial is a widely used technology.This reference will take you through simple and practical approach while learning Java Programming language.

Internal Working of HashMap in Java

In this article, we will see how hashmap’s get and put method works internally. What operations are performed. How the hashing is done. How the value is fetched by key. How the key-value pair is stored. As in previous article, HashMap contains an array of Node and Node can represent ...

Read More »

Java 8 Features with Examples

Java 8 was released in 18th March 2014, so it’s high time to look into Java 8 Features. In this tutorial, we will look into Java 8 features with examples. Java 8 Features Some of the important Java 8 features are:- forEach() method in Iterable interface default and static methods in ...

Read More »

5 Essential difference between Callable and Runnable interface in Java?

In this article, I’ll discuss how to answer this question by highlighting some key differences between Runnable and Callable in Java. I didn’t know all these points at that time but my research after that helped to learn more about the Callable interface. Even though both Callable and Runnable interface are used to encapsulate task supposed ...

Read More »

Arrays in java

java

The array is a data structure which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Array in ...

Read More »

How to get current date time in java

java

Java provides the Date class available in java.util package, this class encapsulates the current date and time.You can also use Calendar class to get current date and time. Getting Current Date & Time This is very easy to get current date and time in Java. You can use a simple ...

Read More »

Wrapper class in Java

java

Wrapper classes are used to convert primitive into object and object into primitive. Each of Java’s eight primitive data types has a class dedicated to it. These are known as wrapper classes, because they “wrap” the primitive data type into an object of that class. The primitive data types are ...

Read More »

Static Binding and Dynamic Binding in Java

java

Connecting a method call to the method body is known as binding. There are two types of binding static binding (also known as early binding). dynamic binding (also known as late binding). 1. Static binding or Early binding Static binding is a binding which happens during compilation. It is also ...

Read More »

Super keyword in java

java

Super keyword in java is a reference variable that is used to refer parent class object.Whenever you create the instance of subclass, an instance of parent class is created implicitly i.e. referred by super reference variable. Usage of java super Keyword super is used to refer immediate parent class instance ...

Read More »

LinkedList in java

java

The LinkedList class extends AbstractSequentialList and implements the List interface. It provides a linked-list data structure. Java LinkedList class uses doubly linked list to store the elements. It extends the AbstractList class and implements List and Deque interfaces. Java LinkedList class can contain duplicate elements. Java LinkedList class maintains insertion ...

Read More »

Checked vs Unchecked Exceptions in Java

Checked and Unchecked Exception is two types of Exception exist in Java. Though there is no difference in functionality and you can very achieve same thing with either checked Exception or Unchecked Exception, there is some difference on exception handling part. 1)Checked Exception Exception which are checked at Compile time ...

Read More »