group 0 can represent the entire expression
Which of these is the superclass for String?
Which of these keywords is not part of exception handling in programming?
Which of the following is used to handle a exception when a catch is not used.
Which of the following does not allow the insertion of duplicated elements?
Which feature of Java 8 enables us to create a work-stealing thread pool using all available processors?
What will be the output of the following Java program?
class String_demo
{
public static void main(String args[])
{
int ascii[] = { 65, 66, 67, 68};
String s = new String(ascii, 1, 3);
System.out.println(s);
}
}
what should be the output of this code block?
public class abekus
{
public static void main(String[] args) {
int arr[] = {
1,
2,
3,
4,
5
};
for (int i = 0; i < 5; i++) {
if (arr[i] % 2 == 0)
System.out.print(arr[i] + " ");
}
}
}
Statement 1- FileReader is used to read a single letter at a time
Statement 2- FileReader is used to read a sentence at a time
Statement 3- FileReader is used to read the whole line at a time
What will be the output of the following Java program?
import java.net.*;
class Networking
{
public static void main(String[] args) throws MalformedURLException
{
URL obj = new URL("https://www.abekus.com/javamcq");
System.out.print(obj.toExternalForm());
}
}