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 will be the output of the following code ?
public class Strings {
public static void main(String ads[]){
String arr[]={"meow","bray","moo"};
String a="meow";
System.out.println(arr[0]==a);
}
}
1.
true
2.
false
3.
Compiler error: at line 5
4.
Runtime error: at line 5