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

Question: 6

Object oriented programming language, is

(A) C++

(B) Java

(C) Both (a) and (b)

(D) None of these

Ans: C

Both (a) and (b)

Question: 7

The methods wait ( ) and notify ( ) are defined in

(A) java.lang.object

(B) java.lang.thread

(C) java.lang.string

(D) java.lang.threadgroup

Ans: A

java.lang.object

Question: 8

When the thread is ready for execution and waiting for the availability of the processor, it is said to be

(A) dead state

(B) running state

(C) in runable state

(D) blocked state

Ans: C

in runable state

Question: 9

Java declaration statement must end with

(A) a semicolon

(B) full stop

(C) comma

(D) a colon

Ans: A

a semicolon

Question: 10

Which one of the following is not a java keyword?

(A) static

(B) break

(C) study

(D) class

Ans: C

study

Related Questions