BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Java – private constructor example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The use of private constructor is to serve singleton classes. A singleton class is one which limits the number of objects creation to one. Using… [Read More]

Tags: Java-OOPs

Multilevel inheritance in java with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

When a class extends a class, which extends anther class then this is called multilevel inheritance. For example class C extends class B and class… [Read More]

Tags: Java-OOPs

Hierarchical Inheritance in java with example program

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

When more than one classes inherit a same class then this is called hierarchical inheritance. For example class B, C and D extends a same… [Read More]

Tags: Java-OOPs

hybrid inheritance in java with example program

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

A hybrid inheritance is a combination of more than one types of inheritance. For example when class A and B extends class C & another… [Read More]

Tags: Java-OOPs

Constructor Overloading in Java with examples

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Like methods, constructors can also be overloaded. In this guide we will see Constructor overloading with the help of examples. Before we proceed further let’s… [Read More]

Tags: Java-OOPs

Method Overloading in Java with examples

Last Updated: September 26, 2022 by Chaitanya Singh | Filed Under: java

Method Overloading is a feature that allows a class to have multiple methods with the same name but with different number, sequence or type of… [Read More]

Tags: Java-OOPs

Interface in java with example programs

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In the last tutorial we discussed abstract class which is used for achieving partial abstraction. Unlike abstract class an interface is used for full abstraction…. [Read More]

Tags: Java-OOPs

Abstract Class in Java with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

A class that is declared using “abstract” keyword is known as abstract class. It can have abstract methods(methods without body) as well as concrete methods… [Read More]

Tags: Java-OOPs

Inner classes in java: Anonymous inner and static nested class

Last Updated: October 25, 2022 by Chaitanya Singh | Filed Under: java

What is an inner class? Inner class are defined inside the body of another class (known as outer class). These classes can have access modifier… [Read More]

Tags: Java-OOPs

Java static import with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Static import allows you to access the static member of a class directly without using the fully qualified name. To understand this topic, you should… [Read More]

Tags: Java-OOPs

Java static constructor – Is it really Possible to have them in Java?

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Have you heard of static constructor in Java? I guess yes but the fact is that they are not allowed in Java. A constructor can not… [Read More]

Tags: Java-OOPs

Java – static variable with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

A static variable is common to all the instances (or objects) of the class because it is a class level variable. In other words you… [Read More]

Tags: Java-OOPs

Difference between static and non-static members in Java

Last Updated: June 2, 2024 by Chaitanya Singh | Filed Under: java

Java is a Object Oriented Programming(OOP) language, which is often interpreted that we need objects to access methods and variables of a class, however this… [Read More]

Tags: Java-OOPs

Difference Between Abstract Class and Interface in Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In this article, we will discuss the difference between Abstract Class and Interface in Java with examples. I have covered the abstract class and interface in… [Read More]

Tags: Java-OOPs

Java Access Modifiers – Public, Private, Protected & Default

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

You must have seen public, private and protected keywords while practising java programs, these are called access modifiers. An access modifier restricts the access of… [Read More]

Tags: Java-OOPs

  • « Previous Page
  • 1
  • 2
  • 3
  • Next Page »

Java Tutorial

Java Introduction

  • Java Index
  • Java Introduction
  • History of Java
  • Features of Java
  • C++ vs Java
  • JDK vs JRE vs JVM
  • JVM - Java Virtual Machine
  • First Java Program
  • Variables
  • Data Types
  • Operators

Java Flow Control

  • Java If-else
  • Java Switch-Case
  • Java For loop
  • Java while loop
  • Java do-while loop
  • Continue statement
  • break statement

Java Arrays

  • Java Arrays

OOPs Concepts

  • OOPs Concepts
  • Constructor
  • Java String
  • Static keyword
  • Inheritance
  • Types of inheritance
  • Aggregation
  • Association
  • Super Keyword
  • Method overloading
  • Method overriding
  • Overloading vs Overriding
  • Polymorphism
  • Types of polymorphism
  • Static and dynamic binding
  • Abstract class and methods
  • Interface
  • Abstract class vs interface
  • Encapsulation
  • Packages
  • Access modifiers
  • Garbage Collection
  • Inner classes
  • Static import
  • Static constructor

Java Exception Handling

  • Exception handling
  • Java try-catch
  • Java throw
  • Java throws
  • Checked and Unchecked Exceptions
  • Jav try catch finally
  • Exception Examples
  • Exception Propagation

Collections Framework

  • Collections in Java
  • Java ArrayList
  • Java LinkedList
  • Java Vector
  • Java HashSet
  • Java LinkedHashSet
  • Java TreeSet
  • Java HashMap
  • Java TreeMap
  • Java LinkedHashMap
  • Java Queue
  • Java PriorityQueue
  • Java Deque
  • Comparable interface
  • Comparator interface
  • Collections Interview Questions

MORE ...

  • Java Scanner Class
  • Java 8 Features
  • Java 9 Features
  • Java Conversion
  • Java Date
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations
  • Java main method
  • Java Interview Q

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap