We can pass ______ number of arguments to main().
Which of these keywords is used to generate an exception explicitly?
Which of these classes extends the InputStream class?
Which class is used for input and output operation when working with bytes?
What exception is thrown by the parseInt()
method?
Which of these methods returns the smallest whole number greater than or equal to a given variable X?
Which three are valid declarations of a float?
What will be the output of the following Java code?
class MultithreadedProgramming
{
public static void main(String[] args)
{
Thread t = Thread.currentThread();
t.setName("New Thread");
System.out.println(t);
}
}
What will be the output of the following Java program?
import java.lang.System;
class Output
{
public static void main(String args[])
{
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 0, b, 0, a.length);
System.out.print(new String(a) + " " + new String(b));
}
}