Java The Complete Guide - Study24x7
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

1247 followers

Daily Current Affair..

585 followers

General Science and ..

503 followers

Learn N Share - Get ..

377 followers

SSC CGL 2020 Prepara..

345 followers

UPSC 2020

256 followers

General Knowledge An..

290 followers

Just Asking - Lets c..

255 followers

Psychology decoded

239 followers

V5 Institute

222 followers

Reasoning with Rizwa..

240 followers

RRB 2020-21 (Railway..

218 followers

Maths By Uttam Sir

216 followers

Results Alert

212 followers

GSGURUMANTRA

203 followers

Tech Geeks

199 followers

Hansraj Academy

191 followers

Learn Advance REASON..

187 followers

Rahul Agnihotri Clas..

178 followers

Java The Complete Gu..

176 followers

Agastya IAS

181 followers

Maths

185 followers