Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Question 1
:
What is the output of the following code ?
public static void main(String ags[]){
String a="abc";
String b="abc";
System.out.print(a.equals(b));
System.out.print(a==b);
}
1.
truefalse
2.
truetrue
3.
falsetrue
4.
falsefalse