About 394,000 results
Open links in new tab
  1. Java String Programs - GeeksforGeeks

    Jun 22, 2024 · Java String class provides a lot of methods to perform operations on strings such as compare (), concat (), equals (), split (), length (), replace (), compareTo (), intern (), substring () etc. Here is a complete list of Java String practice programs divided …

  2. Top 75+ String Programs In Java - Know Program

    String Programs In Java with Examples. 1) Take String Input In Java using Scanner Class:- Develop a Java program to take string input, store it in a variable and display it.

  3. Java String (With Examples) - Programiz

    In Java, a string is a sequence of characters. For example, "hello" is a string containing a sequence of characters 'h', 'e', 'l', 'l', and 'o'. In this tutorial, we will learn about strings in Java with the help of examples.

  4. 25+ Frequently Asked Java String Interview Programs - Java

    May 21, 2015 · In this post, I have collected some of the frequently asked Java string interview programs. I hope it will be helpful to you guys. 1) Write a Java program to find the duplicate words and their number of occurrences in a string? Output : 2) Write a Java program to count the number of words in a string?

  5. Java Strings - W3Schools

    Strings are used for storing text. A String variable contains a collection of characters surrounded by double quotes: A String in Java is actually an object, which contain methods that can perform certain operations on strings. For example, the length of a …

  6. Java Strings - GeeksforGeeks

    May 6, 2025 · In Java, a String is the type of object that can store a sequence of characters enclosed by double quotes, and every character is stored in 16 bits, i.e., using UTF 16-bit encoding. A string acts the same as an array of characters.

  7. Java String Exercise - GeeksforGeeks

    Apr 25, 2024 · Take a look at our Java String Exercise, which will cover the Practice Problems in Java with a series of Java String exercise questions that will help you practice and reinforce your knowledge of String manipulation in Java. These practice problems are both beginner-friendly and experienced-friendly.

  8. String Programs in Java - Sanfoundry

    Here is a collection of the best Java string programs and algorithms. Java string programs for string operations, string matching, approximate string matching, and encryption algorithms.

  9. String Programs in Java with Output - Java Guides

    Here is a list of String Programs with output. The source code from these String programs was well-tested in our development environment. We have used JDK 8 or later to develop these programs. You may be interested to learn String examples. Check out below String conversion examples. 👉 ☕ Java Isn’t Boring. You Just Write Boring Code.

  10. Java String Programs for Beginners 2025 - Javacodepoint

    Mar 22, 2025 · Java string programs are a critical skill for Java developers, and these programs will help you build strong problem-solving abilities. String-based questions often appear in coding interviews, so practicing these will give you an edge over other candidates. Start coding today and sharpen your skills!

  11. Some results have been removed
Refresh