What is the base of the BigDecimal data type?
We cannot achieve multiple inheritance using
abstract class. True or false?
Encapsulation concept in java is
Which one is best suited for a multi-threaded environment?
Which of these is returned by '>' , '<' and '==' operators?
if the user tries to print null then which exception occurs
How many times 'abekus' is printed?
public class abekus {
public static void main(String[] args){
for(int i = 0; i<5; )
{
System.out.println("abekus");
}
}
}
The output of the following Java program.
class Main {
public static void main(String args[]){
final int i;
i = 20;
System.out.println(i);
}
}
class test {
public static void main (String[] args) {
boolean a=true;
boolean b=!a;
boolean c=a|b;
boolean d=a&b;
boolean e=d?b:c;
System.out.println(d+" "+c);
}
}
What is the output of this program?
class Output
{
public static void main(String args[])
{
double x = 5.0;
double y = 3.0;
double z = Math.pow( x, y );
System.out.print(z);
}
}