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 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

Java – String getChars() Method example

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

The method getChars() is used for copying String characters to an Array of chars. public void getChars(int srcBegin, int srcEnd, char[] dest, int destBegin) Parameters… [Read More]

Tags: Java-Strings

Java – String toLowerCase() and toUpperCase() Methods

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

The method toLowerCase() converts the characters of a String into lower case characters. It has two variants: String toLowerCase(Locale locale): It converts the string into… [Read More]

Tags: Java-Strings

Java String replace(), replaceFirst() and replaceAll() methods

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

In this tutorial, we will discuss replace(), replaceFirst()and replaceAll() methods. All of these Java String methods are mainly used for replacing a part of String… [Read More]

Tags: Java-Strings

Java String split() Method with examples

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

Java String split method is used for splitting a String into substrings based on the given delimiter or regular expression. For example: Input String: chaitanya@singh… [Read More]

Tags: Java-Strings

Java String substring() Method with examples

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

The substring() method is used to get a substring from a given string. This is a built-in method of string class, it returns the substring… [Read More]

Tags: Java-Strings

  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • 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 – 2026 BeginnersBook . Privacy Policy . Sitemap