Font size
S
M
L
XL
WorksheetsJava@
Total questions: 6
Worksheet time: 4mins
Name
Class
Date
1.
In scanner sc=new scanner(system.in);
what is scanner?
a)
object
b)
component
c)
package
d)
non of the above
2.
In pattern program
for(i=0;i<4;i++)
{
for(j=0;j<5;j++)
first for loop indicates?
a)
coloums
b)
rows
c)
non of the above
3.
method overriding contains?
a)
base class
b)
derived class
c)
both
d)
none of the above
4.
final method cannot be?
a)
overridden
b)
extended
c)
modified with values
d)
none of the above
5.
if(a>b)
System.out.println("a is big")
else
System.out.println("b is big");
what is output?
a)
a is big
b)
b is big
c)
error
d)
none of the above
6.
JDK stands for---------------
(a)
Reset
