Computer Applications

What do the following functions return?


String x = "Vision";
String y = "2020";
System.out.println(x.equals(y));

Java

Java String Handling

24 Likes

Answer

false

Working

x.equals(y) will return false as x and y contains different characters.

Answered By

12 Likes


Related Questions