Question 1: JAVA - String Immutability
Why are Strings immutable in Java?
Question 2: JAVA - String Object Creation
Which of the following creates a new String object in the heap?
Question 3: JAVA - String Concatenation
What will this code print?
Question 4: JAVA - String equals() vs ==
What will be the output?
Question 5: JAVA - String Length
What will be printed?
Question 6: JAVA - Substring Method
What will this code print?
Question 7: JAVA - StringBuilder vs StringBuffer
Which statement is correct?
Question 8: JAVA - String Reverse Example
What will this code print?
Question 9: JAVA - String Interning
What does the intern() method of String do?
Question 10: JAVA - String isEmpty() vs isBlank()
Which is true about isEmpty() vs isBlank()?