IOException occurs at the time of open the file reader
How to specify autowiring by name?
Which component is responsible for optimizing bytecode to machine code?
Which of these is a wrapper class for the simple data type char?
Which method is used to verify the actual and expected results in JUnit?
public String replaceAll(string replace) replace all other than the first subsequence of that matches the pattern with a replacement string
Which is the valid declaration within an interface definition?
What will be the output of the following Java program?
class Output
{
public static void main(String[] args)
{
String c = " Hello World ";
String s = c.trim();
System.out.println("\"" + s + "\"");
}
}
Statement 1-BufferedReader used to read 6000 bits at a time.
Statement 2- BufferedReader used to read 7000 bits at a time.
Statement 3- BufferedReader used to read 8000 bits at a time.
class method
{
static int i;
static int j;
void add(int a , int b)
{
i =++j + ++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);
}
}