Java The Complete Guide - Study24x7

Welcome Back

Get a free Account today !

or

Forgot password?

By Registering, you agree to our Privacy Policy and Terms of use.

study24x7
Java The Complete Guide
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
SSC Banking/IRDA Defence Railways ...

study24x7
Write a comment

 What will this code print ...?int arr[] = new int [5];System.out.print(arr);

A

0

B

value stored in arr[0].

C

00000

D

Class name@ hashcode in hexadecimal form

study24x7
Write a comment

What is the output of this program ...?

A

xello

B

xxxxx

C

Hxllo

D

Hexlo

study24x7
Write a comment

What is the output of this program ...?

A

Hello

B

World

C

Hellooworld

D

Hello World

study24x7
Write a comment

Which of these is used to read a string from the input stream ...?

A

get()

B

getLine()

C

read()

D

readLine()

study24x7
Write a comment

What does AWT stands for ...?

A

All Window Tools

B

All Writing Tools

C

Abstract Window Toolkit

D

Abstract Writing Toolkit

study24x7
Write a comment

What is the output of this program ...?

A

A

B

B

C

AC

D

BC

study24x7
Write a comment

What is the output of this program ...?

A

Hello

B

World

C

HelloWorld

D

None Of These

study24x7
Write a comment

Which of these keywords is not a part of exception handling ...?

A

try

B

finally

C

thrown

D

catch

study24x7
Write a comment

What is the output of this program ...?

A

10

B

5

C

2

D

20

study24x7
Write a comment

Where is array stored in memory ...?

A

heap space

B

stack space

C

 heap space and stack space

D

first generation memory

study24x7
Write a comment

What is the type of variable ‘b’ and ‘d’ in the below snippet ...?

A

‘b’ and ‘d’ are int

B

‘b’ and ‘d’ are arrays of type int

C

‘b’ is int variable; ‘d’ is int array

D

‘d’ is int variable; ‘b’ is int array

study24x7
Write a comment

What is the output of this program ...?

A

8

B

9

C

10

D

11

E

0

F

None Of These

study24x7
Write a comment

What is the output of this program ...?

A

8

B

9

C

10

D

11

E

0

F

None of these

study24x7
Write a comment

What is the output of this program ...?

A

3

B

0

C

6

D

1

study24x7
Write a comment

Which of these operators is used to allocate memory to array variable in Java ...?

A

malloc

B

alloc

C

new

D

new malloc

study24x7
Write a comment

What is the output of this program ...?

A

Hello c

B

Hello

C

Hello world

D

Runtime Error

study24x7
Write a comment

What is the output of this program ...?

A

5 6 5 6

B

5 6 5

C

Runtime error

D

Compilation error

study24x7
Write a comment
Ratings
5.0
out of 5
7 Ratings
5 study24x7
 
7.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages

Topline Coaching

1391 followers

Daily Current Affair..

695 followers

General Science and ..

621 followers

Learn N Share - Get ..

448 followers

SSC CGL 2020 Prepara..

416 followers

UPSC 2020

303 followers

General Knowledge An..

370 followers

Just Asking - Lets c..

348 followers

Psychology decoded

279 followers

V5 Institute

248 followers

Reasoning with Rizwa..

295 followers

RRB 2020-21 (Railway..

265 followers

Maths By Uttam Sir

268 followers

Results Alert

244 followers

GSGURUMANTRA

226 followers

Tech Geeks

222 followers

Hansraj Academy

215 followers

Learn Advance REASON..

222 followers

Rahul Agnihotri Clas..

202 followers

Java The Complete Gu..

197 followers

Agastya IAS

204 followers

Maths

222 followers