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

How to restrict inheritance in java using Final Classes and Methods

Last Updated: December 14, 2024 by Chaitanya Singh | Filed Under: java

In Java, final classes and methods are used to restrict inheritance and prevent modifications in subclasses. This is useful when you want to ensure that… [Read More]

Common Errors in Inheritance in Java: Examples and solutions

Last Updated: December 14, 2024 by Chaitanya Singh | Filed Under: java

In previous tutorials, we discussed inheritance in java and types of inheritance in Java. In this guide, we will discuss some of the common errors… [Read More]

StringJoiner toString() Method in Java

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

In this tutorial, we will discuss toString() method of StringJoiner class. This method is used to get the string representation of StringJoiner object, this includes… [Read More]

Tags: Java-Strings

StringJoiner add() Method in Java

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

StringJoiner class is introduced in Java 8. It is a part of the java.util package. The main purpose of a StringJoiner is to create a sequence… [Read More]

Tags: Java-Strings

How To Rotate A List In Java – Two Ways

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

In this guide, you will learn how to rotate a list in Java. Rotation means shifting of elements, for example rotating a list to right… [Read More]

Tags: Java-ArrayList

Calculate Average of List in Java

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

In this tutorial, you will learn how to calculate average of a List in Java. This can be done on ArrayList of numbers such as… [Read More]

Tags: Java-ArrayList

Convert JSON Array to ArrayList in Java

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

In this guide, you will learn how to convert JSON array to ArrayList in Java. To parse the given JSON data, you can use org.json… [Read More]

Tags: Java-ArrayList

How to Find length of an Integer in Java

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

In this tutorial, you will learn how to find length of an Integer in Java. There are several ways you can achieve this. One of… [Read More]

How to Find Size of an int in Java

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

The int data type is a primitive data type in Java. The size of int is fixed as defined by Java language specification. The size… [Read More]

Java int vs Integer

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

In this guide, you will learn the differences between int and Integer. Both of these are the data types that represents integer values. However they… [Read More]

Why String Immutable or Final in Java

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

The immutable and final nature of String class is intentional. This is by design to offer several features and advantages. In this guide, we will… [Read More]

Tags: Java-Strings

Immutable String in Java

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

A String in Java is immutable, which means once you create a String object, its value cannot be changed. Any changes (such as concatenation) made… [Read More]

Tags: Java-Strings

Toggle String in Java

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

In this guide, we will learn how to toggle string in Java. Toggle means reversing the case of each character of String (i.e., converting uppercase… [Read More]

Tags: Java-Strings

How to take String Input in Java

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

In this tutorial, we will learn how to take String input in Java. There are two ways you can take string as an input from… [Read More]

Tags: Java-Strings

Java Switch with Strings

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

Introduced in Java 7, you can use switch statement with Strings. This makes code more readable as sometimes the string value of switch case variable… [Read More]

Tags: Java-Strings

  • 1
  • 2
  • 3
  • …
  • 43
  • 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