At runtime, an error is recoverable.
Boolean empty() is return true if nothing on the top of the stack else return false
What is the numerical range of the char
data type in Java?
Which of these methods of the Thread class is used to suspend a thread for a period of time?
What will be the value of str2 after the following lines of code?
String str1 = "apple";
String str2 = str1.concat("mango");
Which of the following statements about the 'continue' statement is false?
class test{
public static void main (String[] args) {
double a=25.645;
int b=25;
a=a%10;
b=b%10;
System.out.println(a+" "+(double)b);
}
}
public class Demo123{
public static void main(String args[]){
String s1= new String("Hello");
String s2= new String("Abekus");
System.out.println(s1.charAt(0)>s2.charAt(0));
}
}
What will be the output of the following code?
class A
{
int recursion (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.recursion(5));
}
}