Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Java Tutorial
Java Intro
Java Syntax
Java Comments
Java Variables
Java Data Types
Java Type Casting
Java Operators
Java Strings
Strings
Java Classes
Java ArrayList
Java HashMap
Java Strings
❮ Prev
Next ❯
Practice Your Knowledge
In Java, which of the following statements about Strings are correct?
A string is an array of characters.
Java String objects are mutable.
In Java, you can use ‘==’ to compare two strings for equality.
String class in Java does not have methods to get the length of string, compare strings or concatenate strings.
Strings are Pool in Java. If you create a new String with the same value as an existing one, Java will re-use the existing one instead of creating a new Object.
Correct!
Incorrect!
Submit
❮ Prev
Next ❯
Sorry about that
How can we improve it?
Submit
Thanks for your feedback!
Thanks for your feedback!
Do you find this helpful?
Yes
No
Quizzes
PHP basics
HTML Basics
Javascript Basics
CSS Basics
ES6 Basics
TypeScript Basics
React Basics
Angular Basics
Sass Basics
Git Basics
Vue.js Basics
SQL Basics
Python Basics
Java Basics
NodeJS Basics