Java is
Platform independent
Object Oriented
Architecture neutral
All the above
The following statement:
float f=3.14;
is valid
Gives compilation error
generates runtime error
Which of the follwing are key words iin java
public
default
class
All the above
Th default value for a local variable in java is:
0
null
1
no default value
System.out.println(args[1]) prints____________
when the porgram is run with java test 12 23
java
test
12
23
class Demo{
int x;
public static void main(String abc[])
{
System.out.println("x="+x);
}
}
The above program outputs...
comipilation error
x=0
runtime error
garbage value
Emp e1=new Emp();
Emp e2=new Emp();
Emp e3=e2;
e1=e2;
e3=null
in the above code
how many objects are created and then eligible for garbage collection
two, two
two, one
three,three
three, two