Vidyalelo
Java Programming · Q26

Strings

Programming · Java Programming · question 26

Q26

In Java, what is the purpose of the isEmpty() method of a String object?

A.
To check if the string is empty.
Answer
B.
To remove leading and trailing whitespace.
C.
To concatenate two strings.
D.
To reverse the string.

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board