Beruflich Dokumente
Kultur Dokumente
7] state
Choice a
running
Choice b
newborn
Choice c
dead
Choice d
blocked
Choice b
Choice c
Choice d
Variable length
Choice
b
Variable len
Choice
c
Methods length
Choice
d
Method len
[20] What is wrong in the following code
abstract class print
{
abstract show();
}
class display extends print
{
}
Choice
a
Nothing is wrong
Choice
b
Choice
c
Choice
d
[19] What keyword can protect a class in a package from accessibility by the
classes outside the package
Choice
a
private
Choice
b
protected
Choice
c
public
Choice
d
[1 What line numbers will cause an error when you compile this code
4] 1 class iftest
2 {
3 public static void main(String args[])
4 {
5 int i=2;
6 if(i=2) {
7 System.out.println(Correct); }
8 else
9 System.out.println(Incorrect); }
10 }
11 }
Choice a
5,9,10
Choice b
6,9
Choice c
Choice d
9,10
[13] Which of the following is True with respect to branching statements if &
switch
Choi
ce a
Choi
ce b
Choi
ce c
Choi
ce d
1.6
Choice b
Choice c
Choice d
1.5
Choice b
Choice c
Choice d
Choice
b
Choice
c
Choice
d
Converting
Choice b
Changing
Choice c
Defining
Choice d
Casting
characters long
Choi
ce a
System is a
class.println is
a method and
out is a object
Choi
ce b
System is a
Object.out is a
object and
println is data
member
Choi
ce c
System is a
package out is
a method print
is a object
Choi
ce d
System is a
pointer to
object out of
class println
5] Which of the
following is NOT
true with respect to
Java Program
Structure
Choi
ce a
Comme
nts can
be
given
only at
the
beginni
ng of
Progra
m
Choi
ce b
Package
stateme
nt
should
be
before
class
definiti
on
Choi
ce c
Import
stateme
nt
should
be
before
class
definiti
on
Choi
ce d
Interfac
e
stateme
nt
should
be
before
class
definiti
on
Java
application
need not
wait for the
application
to finish
one task
before
beginning
another
Choi
ce b
Java is
capable of
dynamicall
y linking in
U class
libraries,
methods
and objects
Choi
ce c
Java
supports
functions
written in
other
languages
such as C
and C++
Choi
ce d
Java uses
less amount
of memory
in
environmen
t
[3] Which of the following is NOT one of the web
browsers
Choice a
Coldjava
Choice b
Netscape
Navigator
Choice c
Internet Explorer
Choice d
Hotjava
Inheritance
Choice b
Polymorphis
m
Choice c
Encapsulation
Choice d
Abstraction
Objects
Choice b
Method
s
Choice c
Functio
ns
Choice d
Procedu
res