5 years ago in Java Strings

Which of the following statements are incorrect?

[A] String is a class
[B] Strings in java are mutable.
[C] Every string is an object of class String.
[D] Java defines a peer class of String, called StringBuffer, which allows string to be altered.
Loading...
Next Question

Overall Stats

Attempted 365
Correct 168
Incorrect 75
Viewed 122

Answers

Guest
Guest
bruh
bruh - 4 weeks ago

bruh from Guwahati, India is saying Every string is an object of class String. is correct answer

Assaad Amine
Assaad Amine - 4 weeks ago

Assaad Amine from Casablanca, Morocco is saying String is a class is correct answer

Zo Go
Zo Go - 4 weeks ago

Zo Go from Casablanca, Morocco is saying Strings in java are mutable. is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying Every string is an object of class String. is correct answer

HD
HD - 1 month ago

HD from Kenitra, Morocco is saying Strings in java are mutable. is correct answer

Related Questions

String is an________

  • [A] class
  • [B] Variable
  • [C] Array
  • [D] Data type

What is the output of the code ?
public class AQuestion{

      private int i = j;

      private int j = 10;

      public static void main(String args[]){

            System.out.println((new AQuestion()).i);

      }

}

  • [A] Compiler error complaining about access restriction of private variables of AQuestion.
  • [B] Compiler error complaining about forward referencing.
  • [C] No error - The output is 0;
  • [D] No error - The output is 10;