Computer Applications
String is …………… in Java.
- interface
- mutable
- method
- immutable
Java String Handling
10 Likes
Answer
immutable
Reason — String is immutable in Java.
Answered By
6 Likes
Related Questions
Read the following text and choose the correct answer:
Java constructor overloading is a technique in which a class can have any number of constructors that differ in parameter list. The compiler differentiates these constructors by taking into account the number of parameters in the list and their type.
Why do we use constructor overloading?
- To use different types of constructors.
- Because it's a feature provided.
- To initialise the object in different ways.
- To differentiate one constructor from another.
Assertion (A) JVM is a Java interpreter loaded in the computer memory as soon as Java is loaded.
Reason (R) JVM is different for different platforms.- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.
What will be the output of the following statements?
int a = 3; System.out.println(" " + (1 + a)); System.out.println(" " + 1 + a);Find the output of the following code.
String str = "I Love My Family"; System.out.println(Integer.toString(str.length())); System.out.println(str.substring(12));