class test {
public static void main (String[] args) {
System.out.println('a'==97.000);
}
}
Which of these is the superclass of the wrapper classes Long, Character, and Integer?
Which interface is the base interface that all other Java collection interfaces inherit from?
Which exception is thrown when divided by zero
Which of these methods can be used to check whether a given value is a number or not?
The process of wrapping up of data in to a single unit (i.e _______) is called encapsulation .
Fill in the above blank.
public class output{
public static void main(String args[]){
int a=10;
int b=20;
int sum=0;
sum= a++ + b++;
System.out.println(sum);
}
}
Which of the following is not an advantage of the Hibernate Criteria API?
What is the output of the following Java code?
public class ex {
final int x = 20;
public static void main(String[] args) {
ex myObj = new ex();
myObj.x = 40;
System.out.println(myObj.x);
}
}
What is the correct output?
class Abekus {
public static void show() {
System.out.println("Abekus::show() called");
}
}
class Derived extends Abekus {
public static void show() {
System.out.println("Derived::show() called");
}
}
public class Main {
public static void main(String[] args) {
Abekus a = new Derived();;
a.show();
}
}