try need not be followed by anything
The character range of ASCII is?
FileReader is much better than BufferedReader
Java is
What kind of methods does an interface contain by default?
Which of the following statements is/are true about Java Servlets?
What will happen if a constructor has a return type?
Predict the output of the following Java code:
class Abekus {
public static void main(String args[])
{
int s = 0;
for (int i = 0, j = 0; i < 6 & j < 10; ++i, j = i + 2)
s += i;
System.out.println(s);
}
}
class test {
public static void main (String[] args) {
int var1=9;
int var2=10;
if(++var1++==++var2)
System.out.println(++var2);
else
System.out.println(++var1);
}
}
What will be the output of the following code?
class A
{
int factorial (int n)
{
int result;
if (n == 1)
return 1;
result = func (n - 1);
return result;
}
}
class Output
{
public static void main(String args[])
{
A a = new A() ;
System.out.print(a.factorial(6));
}
}