Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
public class Test { public static void main(String args[]) { int x = 10; int y = 5; System.out.println(x > y); } }
1
0
What is the output of the following program?
public class Test {public static void main(String args[]) {int x = 10;int y = x++;System.out.println(y); }}
10
11
9
None of the above
var
let
int
def
int x = 5;
int 5 = x;
x = 5;
int x;
while
for
do-while
if
class
new
object
create
What is Java?
A programming language
An operating system
A database management system
A web browser
public class Test { public static void main(String args[]) { int x = 5; int y = 2; System.out.println(x / y); } }
2
2.5
public class Test { public static void main(String args[]) { int x = 10; int y = 20; System.out.println(x < y && x > 5); } }
boolean
double
string