How many layers are available in Hibernate architecture?
Interpret the output of the following Java code.
class test{
public static void main (String[] args) {
int a=~3^4;
int b=~4;
int c=a^b;
System.out.println(~c|b);
}
}
class GFG {
public static void main (String[] args) {
int a=64;
System.out.print(Integer.toBinaryString(a));
}
}
Which is the correct declaration to implement two interfaces?
Which of the following methods is used to get an attribute from an HTTP Session object in servlets?
What is the output of the following Java code?
class Test {
public static void main(String args[]) {
try {
System.out.print("Hello" + " " + 1 / 0);
}
catch(ArithmeticException e) {
System.out.print("World");
}
}
}
What will the output of this code?
class StringDemo
{
public static void main(String args[])
{
char c[] = {'A', 'B', 'C'};
String str = new String(c);
System.out.println(str);
}
}
Predict the output of the following Java code:
class Abekus {
public static void main(String[] args)
{
int x = 12;
if (++x < 12 && (x / 0 > 12)) {
System.out.println("Amrit");
} else {
System.out.println("Anand");
}
}
}