Method overriding is a combination of inheritance and polymorphism
if we try to use synchronized blocks for primitives we get a compile-time error.
Which of the following matches end of the string using regular expression in java
Loose coupling in java programs can be done by
What is the scope of the public access modifier?
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
int a = Character.MAX_VALUE;
System.out.print((char)a);
}
}
How many times 'abekus' is printed?
public class abekus
{
public static void main(String[] args) {
while(true){
System.out.println("abekus");
break;
}
}
}
To avoid serialization of a new class whose superclass already implements Serialization, which of the following methods should be used?
What is the correct output?
public class Abekus {
static int x = 5;
public static void main(String[] args) {
Abekus myObj = new Abekus();
System.out.println(x);
}
}
Choose the correct option to import the correct package.
We have some lines of code in the java file named b.java.
public class b{
public static void main(String args[])
{
Pattern p=Pattern.compile();
}
}