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 String join() method

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

The join() method of String class is introduced in Java 8. This method is used to concatenate strings with specified delimiter. It is also used… [Read More]

Tags: Java-Strings

Java String isEmpty() method

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

Java String isEmpty() method checks whether a String is empty or not. This method returns true if the given string is empty, else it returns… [Read More]

Tags: Java-Strings

Java String intern() method

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

Java String intern() method is used to manage memory by reducing the number of String objects created. It ensures that all same strings share the same memory…. [Read More]

Tags: Java-Strings

Java String format() method

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

Java String format() method is used for formatting the String. It works similar to printf function of C, you can format strings using format specifiers…. [Read More]

Tags: Java-Strings

Java String contains() method

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

Java String contains() method checks whether a particular sequence of characters is part of a given string or not. This method returns true if a… [Read More]

Tags: Java-Strings

Difference between String and StringBuffer

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

In this article, we will discuss the difference between String and StringBuffer. Both of these classes used to handle sequence of characters. However they are… [Read More]

Tags: Java-Strings, StringBuffer

Difference between StringBuilder and StringBuffer

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

In this article we are gonna discuss the differences between StringBuilder and StringBuffer. Before discussing the differences, lets have a look at what java documentation… [Read More]

Tags: Java-Strings

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

Java – String regionMatches() Method example

Last Updated: November 3, 2022 by Chaitanya Singh | Filed Under: java

The method regionMatches() tests if the two Strings are equal. Using this method we can compare the substring of input String with the substring of… [Read More]

Tags: Java-Strings

Java – String matches() Method example

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

Method matches() checks whether the String is matching with the specified regular expression. If the String fits in the specified regular expression then this method… [Read More]

Tags: Java-Strings

Java – String toCharArray() Method example

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

The method toCharArray() returns an Array of chars after converting a String into sequence of characters. The returned array length is equal to the length… [Read More]

Tags: Java-Strings

Java String trim() and hashCode() Methods with examples

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

In this  tutorial we will discuss Java String trim() and hashCode() methods with the help of examples. Java String trim() method signature It returns a… [Read More]

Tags: Java-Strings

Java – String getBytes() Method example

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

The getBytes() method encodes a given String into a sequence of bytes and returns an array of bytes. The method can be used in below… [Read More]

Tags: Java-Strings

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