Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/5
Score 0
Java programs are compiled into intermediate byte code. What is the advantage of this ?
30
enables easy garbage collection
enables multi threading
enables portability
executing the byte code is faster than executing the native code
Q 2/5
Score 0
Which of these is NOT valid keyword or reserved word in Java ?
30
String
volatile
null
default
5 questions
Q.
Java programs are compiled into intermediate byte code. What is the advantage of this ?
1
30 sec
Q.
Which of these is NOT valid keyword or reserved word in Java ?
2
30 sec
Q.
What will be the output of the following code snippet ?
public class Looping
{
public static void main(String[] args)
{
int j = 5;
for (int i = 0; i< j; i++)
{
if ( i < j-- )
System.out.print( (i*j) + " ");
}
}
}
3
30 sec
Q.
A method within a class is only accessible by classes that are defined within the same package as the class of the method. How can this restriction be enforced ?
4
30 sec
Q.
What will be the output of the following code ?
public class Test {
public static void main(String[] args)
{
double d = 100.04;
float f = d;
System.out.println("Float value "+f);
}
}