Quiz
Career Fair
Questions in this quiz (1)
1Java. Which of the single options below best describes the output of this program?
public static void main(String[] args) {
String s1 = new String("Test");
String s2 = "Test";
if (s1 == s2) {
System.out.println("Same");
}
if (s1.equals(s2)) {
System.out.println("Equals");
}
}- APrints "Same"
- BPrints "Equals"
- CPrints "Same" followed by "Equals"
- DPrints nothing
Information
- Description
- Quiz on Career Fair, created by Kashish Tayal on 06/09/2017.
- Author
- Kashish Tayal
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz