Examveda
Examveda

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

A. To check if the string is empty.

B. To remove leading and trailing whitespace.

C. To concatenate two strings.

D. To reverse the string.

Answer: Option A


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings