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

Archives for 2014

@Override annotation in Java

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

@Override annotation is used when we override a method in sub class. Generally novice developers overlook this feature as it is not mandatory to use… [Read More]

Sorting float array in Java example

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

In this tutorial we are gonna learn how to sort a float array. import java.util.Arrays; class SortingFloatArrayExample { public static void main(String[] args) { //… [Read More]

Tags: Java-Array

Sorting double array in Java example

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

import java.util.Arrays; class SortingDoubleArray { public static void main(String[] args) { // Creating a Double Array double[] doubleArray = new double[] { 13.1, 2.5, 2.2,… [Read More]

Tags: Java-Array

Sorting char array in Java example

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

In this example we are sorting a char array. We have demonstrated two types of sorting in the program 1) Complete sorting using sort(char[] a)… [Read More]

Tags: Java-Array

Sort byte array in Java

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

This is the example of sorting a byte array in Java. Here we have done two types of sorting 1) complete sorting using sort(byte[] a)… [Read More]

Tags: Java-Array

Java – Finding minimum and maximum values in an array

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

In this example we are finding out the maximum and minimum values from an int array. class MinMaxExample { public static void main(String args[]){ int array[]… [Read More]

Tags: Java-Array

Random shuffling of an array in Java

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

import java.util.Arrays; import java.util.Collections; import java.util.List; class ShuffleArrayExample { public static void main(String[] args) { // String Array String[] stringArray = new String[] { “FF”,… [Read More]

Tags: Java-Array

Sort an Array in Descending (Reverse) Order – Java

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

The previous tutorial was all about sorting an array in ascending order. In this post we are going to learn how to sort an array… [Read More]

Tags: Java-Array

How to sort an Array in Java

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

This is the example of sorting an Array in java. Here we have two arrays, one is an integer array and another one is a… [Read More]

Tags: Java-Array

Final method parameters in java

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

In the last tutorial we discussed about final keyword. In this post we are gonna discuss about final method parameters. You must have seen the… [Read More]

Tags: Java-OOPs

How to remove only trailing spaces of a string in Java

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

In this tutorial we will learn how to trim trailing spaces from the string but not leading spaces. Here is the complete code: class TrimBlanksExample… [Read More]

Tags: Java-Strings

java – Left padding a String with Spaces and Zeros

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

In this tutorial we are gonna see how to left pad a string with spaces and zeros: 1) Left pad with spaces class LeftPaddingExample1 {… [Read More]

Tags: Java-Strings

java – Right padding a String with Spaces and Zeros

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

In this tutorial we are gonna see how to right pad a string with spaces and zeros: 1) Right pad with spaces public class PadRightExample1… [Read More]

Tags: Java-Strings

How to get the size of TreeMap example – Java

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

In this tutorial we willl learn how to get the size of a TreeMap. We are using size() method of TreeMap class to get the… [Read More]

Tags: Collections, Java-TreeMap

How to get the Sub Map from TreeMap example – Java

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

In this example we are gonna see how to get a sub map from TreeMap. We are using subMap() method of TreeMap class. Please refer… [Read More]

Tags: Collections, Java-TreeMap

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 16
  • 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