Which of the following is not an implicit object in JSP?
What does 'JPA' stand for?
What is the output of the following Java code?
System.out.print(Math.floor(-12.2));
LinkedList() method is used to
class A
{
public static void main(String args[])
{
int a = 42;
int b = ~a;
System.out.print(a + " " + b);
}
}
class test {
public static void main (String[] args) {
double a=25.645;
double b=25.0;
a=a%10;
b=b%10;
System.out.println((int)a+" "+b);
}
}
public class Main
{
public static void main(String[] args) {
float a = 90.0f;
String temp = Integer.toString(a);
System.out.println(temp);
}
}
class test{
public static void main (String[] args) {
int a=10,b=20;
for(int i=0;a==b;i++)
{
System.out.println("Hello");
}
System.out.println("World");
}
}
Number of threads in below java program is
public class ThreadExtended extends Thread {
public void run() {
System.out.println("\nThread is running now\n");
}
public static void main(String[] args) {
ThreadExtended threadE = new ThreadExtended();
threadE.start();
}
}
import java.util.*;
class result
{
public static void main(String args[])
{
Hashtable obj = new Hashtable();
obj.put("A", new Integer(3));
obj.put("A", new Integer(3));
obj.put("B", new Integer(2));
obj.put("B", new Integer(2));
obj.put("C", new Integer(8));
obj.put("C", new Integer(8));
obj.put("D", new Integer(9));
obj.put("D", new Integer(9));
obj.put("E", new Integer(4));
obj.put("E", new Integer(4));
obj.put("F", new Integer(6));
obj.put("F", new Integer(6));
System.out.print(obj.contains(new Integer(6)));
}
}