GeeksforGeeks
geeksforgeeks.org › java › java-strings-coding-practice-problems
Java Strings Coding Practice Problems - GeeksforGeeks
July 23, 2025 - This collection of Java string practice problems covers key operations such as finding string length, slicing, case conversion, palindrome checking, anagram detection, and pattern matching.
Videos
29:45
Top Java Coding Questions Asked in Interview | String | Array - ...
01:07:33
5 Java Coding Interview Questions and Answers on Strings | Java ...
50:58
5 Java String Coding Interview questions and answers part 2 - YouTube
05:16
String 12: Implement strstr() | Must Do Coding Questions | ...
05:22
String 1: Reverse words in a given string | Must Do Coding Questions ...
05:44
String 7: Anagram | Must Do Coding Questions | GeeksForGeeks - YouTube
GeeksforGeeks
geeksforgeeks.org › java › java-string-programs
Java String Programs - GeeksforGeeks
October 7, 2025 - Strings are widely used for storing and processing textual data in programs. Here is a complete list of Java String practice programs divided into basic and advanced categories:
GeeksforGeeks
geeksforgeeks.org › java › java-string-exercise
Java String Exercise: Beginner to Pro Exercises - GeeksforGeeks
June 22, 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.
InterviewBit
interviewbit.com › java-string-interview-questions
Top Java String Interview Questions & Answers (2025) - InterviewBit
December 21, 2024 - In this article, we have compiled a comprehensive list of insightful Java String Interview Questions for both Freshers and Experienced that focus on a range of topics including thread-safety, immutability, string methods in Java, StringBuilder and StringBuffer, memory consumption, comparing String instances in Java, using String as the key in HashMap, equals() vs == check for String, etc.
Naukri
naukri.com › code360 › problem-lists › top-string-coding-interview-questions
Top String Coding Interview Questions
4 days ago - Almost there... just a few more seconds
GeeksforGeeks
geeksforgeeks.org › dsa › problem-solving-strings
Practice questions on Strings - GeeksforGeeks
August 3, 2022 - As p is a pointer of type character, *p will print ‘G’ Using pointer arithmetic, *(p+p[3]-p[1]) = *(p+75-69) (Using ascii values of K and E) = *(p+6) = 1(as we know p is holding the address of base string means 0th position string, let assume the address of string starts with 2000 so p+6 means the address of p(we are adding 6 in 2000 that means 2006, and in 2006 the "1"is stored that is why answer is 1). Therefore, the output will be G, 1. Que - 2. Which of the following C code snippet is not valid?
Blogger
javarevisited.blogspot.com › 2015 › 01 › top-20-string-coding-interview-question-programming-interview.html
Top 20 String Algorithm Questions from Coding Interviews
In this article, we are going to see the top 20 String based coding interview question and their solution to help programmers better prepare for interviews. The string is one of the most important data structures and available in almost every programming language like Java, C, C++, Python, Perl, and Ruby.
Java67
java67.com › 2018 › 04 › 21-string-programming-and-coding-interview-questions-answers.html
Top 21 String Programming and Coding Interview Questions With Solutions | Java67
July 20, 2023 - Learn Java and Programming through articles, code examples, and tutorials for developers of all levels. ... In this article, I am going to share 21 of the most common String-based Programming and Coding interview questions from Java developer interviews. These questions require you to write code to solve the problem and they are different from traditional Java String questions like how the substring method works in Java?
GeeksforGeeks
geeksforgeeks.org › dsa › string-problems-topicwise
String Problems Topic Wise - GeeksforGeeks
July 23, 2025 - In this post, string problems based on different topics are mentioned.
IGotAnOffer
igotanoffer.com › blogs › tech › string-interview-questions
51 string interview questions (coding problems with solutions) - IGotAnOffer
June 29, 2022 - This has performance implications for string concatenation when joining a number of strings, running in quadratic time. Java provides a mutable StringBuilder class, which should be used for concatenating multiple strings. In Python, generally the `.join` method on strings should be used, which accepts an iterable of multiple strings.
GeeksforGeeks
geeksforgeeks.org › questions › java-string
Java - String
JavaScript · Data Science · Machine Learning · Courses · Linux · DevOps · Last Updated : Discuss · Comments · Which class is mutable among these? String · StringBuilder · Integer · Character · This question is part of this quiz :Advanced Java Quiz (Day 1-15) Tags: Java ·
Naukri
naukri.com › code360 › library › java-string-interview-questions
Top Java String Interview Questions and Answers (2025)
February 18, 2026 - Almost there... just a few more seconds
DigitalOcean
digitalocean.com › community › tutorials › java-string-interview-questions-and-answers
Java String Interview Questions and Answers | DigitalOcean
December 10, 2024 - Since a String object is immutable, its hashcode is cached at the time of creation and it doesn’t need to be calculated again. This makes it a great candidate for the key in a Map since its processing is faster than other HashMap key objects. Test yourself by guessing the output of the following Java code snippets.
GitHub
github.com › RecursiveSharma › StringCodingQuestions
GitHub - RecursiveSharma/StringCodingQuestions: Mostly Asked String Coding Interview Questions | String Programs (Problems) for Practice 🚀
January 26, 2026 - Mostly Asked String Coding Interview Questions | String Programs (Problems) for Practice 🚀 - RecursiveSharma/StringCodingQuestions
Starred by 9 users
Forked by 4 users
Blogger
javahungry.blogspot.com › 2018 › 09 › top-50-java-string-interview-questions-and-answers.html
Top 50 Java String Interview Questions and Answers | Java Hungry
May 20, 2025 - Given I also want thread-safe code? This is scenario based question. You should give answer StringBuffer. You can use String also but with every modification and concatenation operation, a new String is formed as String is immutable. It will lead to the memory allocation issues. StringBuilder can not be used as it is not synchronized, i.e thread-safe. So, the clear answer is StringBuffer. Advanced Level (8+ years)- Java String Interview Questions and Answers Q42 Why char Array is preferred over String in storing passwords?