Types Of Inheritance In Java – Single Vs Multiple Inheritance

Types of Inheritance in Java

Learn all about the various types of inheritance in Java with the help of simple examples. Find out if Java supports multiple inheritances: We introduced Inheritance in Java along with the various basic concepts related to inheritance to the readers in our last tutorial. In this tutorial, we will explore …

Read more


What Is Inheritance In Java – Tutorial With Examples

Inheritance in Java – Introduction

This tutorial explains the concept of Inheritance in Java, related terms like ‘extends’ and ‘super’ keywords, subclass, superclass, Is-A, HAS-A relationships, etc.: After learning about the three Pillars of OOP namely, Abstraction, Encapsulation, and Polymorphism in Java, we come to the last pillar of OOP i.e. inheritance. Starting with this …

Read more


Java Composition – What Is Composition (Has-A) In Java

Composition (Has-A) in Java

This Java Composition tutorial explains what is Composition and Aggregation in Java and the differences between them: In the last couple of tutorials, we discussed inheritance in Java in detail. Inheritance in Java is a type of “IS-A” relationship which indicates that one object ‘is a kind of’ another object. …

Read more


Marker Interface In Java: Serializable And Cloneable

Marker Interfaces in Java – Serializable and Cloneable

This tutorial explains what is a Marker Interface in Java. It also covers Serialization Deserialization and Cloning in Java with code examples: We will discuss the last topic under Interfaces, i.e. Marker Interface in Java. After we are done with the marker interface we will discuss two examples i.e. serializable …

Read more


Comparable And Comparator Interfaces In Java

Comparable & Comparator Interfaces in Java

This tutorial explains the concept of Comparable And Comparator Interfaces In Java with examples. You will also learn about the differences between the two: We learned all about interfaces in our earlier tutorials. An interface is used to declare abstract methods and static or final variables. By default, interface methods …

Read more


Java Regex Tutorial With Regular Expression Examples

RegularExpression

This Java Regex tutorial explains what is a Regular Expression in Java, why we need it, and how to use it with the help of Regular Expression examples: A regular expression in Java that is abbreviated as “regex” is an expression that is used to define a search pattern for …

Read more


Introduction To JFC And GUI Programming In Java

GUI Programming

This tutorial discusses the basics of GUI (Graphical User Interface) programming and Java Foundation Classes or JFC in Java: In our previous tutorials, we have covered topics ranging from the basics of Java-like data types, variables, decision-making, and loop constructs, etc. to arrays, collections, and methods in Java. We have …

Read more


Java Vs JavaScript: What Are The Important Differences

JavavsJavaScript

In this Java vs JavaScript tutorial let’s discuss major differences between Java and an important scripting language JavaScript with simple examples: Java is an object-oriented programming language and runs on a Java Virtual Machine (JVM) that helps you to create programs that are platform-independent (Write once, Run anywhere –WORA). Java …

Read more


What Is JavaDoc And How To Use It To Generate Documentation

JavaDoc tool

This tutorial explains what are JavaDoc tool and JavaDoc Comments and methods to generate code documentation: JavaDoc is a special tool that is packaged with the JDK. It is used to generate the code documentation of Java source code in HTML format. It is a documentation generator for the Java …

Read more


JDBC Batch Processing And Stored Procedure Tutorial

7 JDBC_ Batch Processing & Stored Procedure Tutorial

This tutorial provides a complete understanding of JDBC Batch Processing and Java Stored Procedure with sample Java examples: In the JDBC Exception Handling tutorial of the JDBC tutorial series, we learned ways to handle SQL Exceptions with the help of programming examples. In this tutorial, we will discuss methods to …

Read more


 JDBC Exception Handling – How To Handle SQL Exceptions

EXCEPTIONS IN JDBC

This  JDBC Exception Handling tutorial explains ways to handle SQL Exceptions with the help of programming examples: In the JDBC Transaction Management tutorial of the JDBC tutorial series, we learned JDBC transaction types, data types, transaction management methods, and how to use them in Java programs. In this tutorial, we …

Read more


Java JDBC Transaction Management With Example

Transaction Management

This tutorial explains JDBC transaction types, data types,  transaction management methods, and how to use them in Java program: In the JDBC ResultSet tutorial of the JDBC tutorial series, we learned to use JDBC ResultSet to retrieve data. In this tutorial, we will discuss the transaction types in JDBC. We …

Read more


What Is Java Used For: 12 Real World Java Applications

Applications of Java

This tutorial explains what is Java used for. We will discuss the top real-world Java Applications including tools & technologies based on Java: Since its development in 1995 by Sun Microsystems and in subsequent years, the language has become a backbone as far as millions of applications are concerned. According …

Read more


Design Patterns In Java: Singleton, Factory And Builder

DesignPatterns

In this tutorial we will discuss Design Patterns in Java. We will study Singleton, Factory and Builder patterns with examples and advantages: When we solve a specific problem, we can solve it more efficiently if we have some best practices already defined. This indeed will help us to follow these …

Read more


What Is Java AWT (Abstract Window Toolkit)

Java Abstract Window Toolkit (AWT)

This Java AWT tutorial explains what is Abstract Window Toolkit in Java and related concepts like AWT Color, Point, Graphics, AWT vs Swing, etc: We got introduced to the basic GUI terms in one of our earlier tutorials. In this tutorial, we will discuss one of the oldest GUI frameworks …

Read more


Java If Statement Tutorial With Examples

Java - if construct

Java If also known as the if-then statement is the simplest form of decision-making statement. Learn about all variations of If else in Java: We will explore how Java uses if-statement to perform a conditional check. This conditional check is also known as decision making in Java. Thus Java – …

Read more


Methods In Java – Tutorial With Programming Examples

Methods in Java

In this tutorial, we will learn the concept of Methods in Java detail. We will learn the following concepts related to Java methods:  Java method types Method Syntax How to call the method Parameters, Arguments, and Return Values Access Modifiers Memory allocation for Method calls Method Overloading Simple programming examples …

Read more


Java @override: Method Overriding And Runtime Polymorphism

@override_ Method Overriding In Java

This tutorial explains how to achieve Runtime Polymorphism in Java using Method Overriding and @override annotation with simple examples: We have already discussed the polymorphism concept and Compile-time polymorphism in detail. In this tutorial, we will go ahead with Runtime polymorphism in Java. In contrast to compile-time polymorphism in which …

Read more


What Is Polymorphism In Java – Tutorial With Examples

What is Polymorphism in Java1 Polymorphism in Java 

This tutorial explains what is Polymorphism in Java, the types of polymorphism, & how to implement compile-time polymorphism with examples: The word “Polymorphism” derives from two words i.e. “Poly” which means many and “morphs” meaning forms. Thus polymorphism means many forms. In a programming language, we can say that an …

Read more


Overriding Predefined Methods In Java

Overriding Predefined methods in Java

This tutorial explains how to override predefined methods like equals (), hashCode (), compareTo (), etc. in Java with examples: In our previous tutorial, we discussed runtime polymorphism in Java. Runtime polymorphism in Java is implemented using method overriding. Method overriding involves redefining the parent class method in the subclass. …

Read more