How much is the default quantity of the ArrayList list?
PatternSyntaxException not a class of java.util.regex
What is generated when the user interacts with the application by pressing a key or clicking a mouse button?
public class abekus
{
public static void main(String[] args) {
String temp = "+050";
int a = Integer.parseInt(temp);
System.out.println(a);
}
}
Which of the following is true about a method-local inner class?
class test{
public static void main (String[] args) {
int a = 5;
int b = 6;
int c;
c = ++ b * --a / ++b + -- b;
System.out.print(c);
}
}
What will be the output of the program?
class Bitwise
{
public static void main(String [] args)
{
int x = 11 & 9;
int y = x ^ 3;
System.out.println( y | 12 );
}
}
In java a data input is
class method
{
static int i;
static int j;
void add(int a , int b)
{
i =++a%b;
j =i%b;
}
}
class output
{
public static void main(String args[])
{
method obj1 = new method();
method obj2 = new method();
int a = 5;
obj1.add(++a, ++a + 1);
obj2.add(6, a);
System.out.println(obj1.i+" "+obj2.j);
}
}
import java.util.*;
class result
{
public static void main(String args[])
{
HashMap obj = new HashMap();
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.clear();
obj.put("F", new Integer(6));
System.out.print(obj.toString());
}
}