Search
Main Menu
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Who's Online
23 user(s) are online (7 user(s) are browsing Jobs & News)

Members: 0
Guests: 23

more...

Java String Interview Question


Author: | Interview Q&A - FYIcenter.com
Date: Jun 25, 2016
Views: 0

If we have the following in a Java code:

String s="abc";
String s2="abc";


Then what will be output of:

System.out.println("s.equals(s2) = "+s.equals(s2));
System.out.println("s==s2 = "+(s==s2)); - Rank: 11712 - Votes: 94 - Views: 8863 - Updated: 2016-06-26

URL: http://www.fyicenter.com/modules/planet/view.article.php?412379
Trackback: http://www.fyicenter.com/modules/planet/trackback.php?412379

Copyright (c) FYIcenter.com