Articles
Windows FAQ
"Microsoft Silverlight" Installed Program on Windows 7 - What is...
"Microsoft Visual C++ 2005 Redistributable" Installed Program on...
"Microsoft Visual C++ 2005 Redistributable (x64)" Installed Prog...
"Microsoft Visual C++ 2008 Redistributable - x64 9.0.21022" Inst...
"Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17" I...
Who's Online
2 user(s) are online (2 user(s) are browsing Jobs & News)

Members: 0
Guests: 2

more...

Java String Interview Question


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

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: 10844 - Votes: 94 - Views: 7995 - Updated: 2016-06-26

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

Copyright (c) 2015 FYIcenter.com
Search
Main Menu
Login
Username:

Password:

Remember me



Lost Password?

Register now!