5 years ago in java.lang Package

Which of these method of class String is used to obtain length of String object?

[A] get()
[B] Sizeof()
[C] lengthof()
[D] length()
Loading...
Next Question

Overall Stats

Attempted 167
Correct 79
Incorrect 27
Viewed 61

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying Sizeof() is correct answer

Sonali Nirgude
Sonali Nirgude - 1 week ago

Sonali Nirgude is saying lengthof() is correct answer

bruh
bruh - 1 month ago

bruh from Guwahati, India is saying length() is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying lengthof() is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying Sizeof() is correct answer

Related Questions

Which of these is a process of converting a simple data type into a class?

  • [A] type wrapping
  • [B] type conversion
  • [C] type casting
  • [D] None of the Mentioned.

Which of the following will compile correctly?

  • [A] System.out.println(Math.max(x));
  • [B] System.out.println(Math.random(10,3));
  • [C] System.out.println(Math.round(20));
  • [D] System.out.println(Math.sqrt(10));

Which of the following will output a random with values only from 1 to 10?

  • [A] System.out.println(Math.round(Math.random()* 10));
  • [B] System.out.println(Math.round(Math.random() % 10));
  • [C] System.out.println(Math.random() *10);
  • [D] None of the above