Top 50+ Java Programming Objective Type Questions & Answers - 1

Question: 1

Java

(A) is most suitable for Internet programming

(B) non an acronym

(C) a really simple, reliable, portable and powerful language

(D) all of these

Ans: D

all of these

Question: 2

Which one of the following is a logical operator?

(A) ||

(B) &&

(C) !

(D) all of these

Ans: D

all of these

Question: 3

The method which belongs to the string class is/are

(A) Compare to ( )

(B) Length ( )

(C) Substring ( )

(D) Equals ( )

Ans: B

Length ( )

Question: 4

For a 32-bit integer value, keyword used is

(A) Boolean

(B) Int

(C) Short

(D) Long

Ans: B

Int

Question: 5

A web page is

(A) Made up of text and HTML tags

(B) Marked by an opening HTML tag

(C) Marked by a closing HTML tag

(D) All of these

Ans: D

All of these

Error Report!

Related Questions