Static methods can not refer to this or super in any way
' \b ' is used to
Which of these packages contains abstract keyword
When does method overloading is determined?
Which class is the superclass of the String and StringBuffer classes?
class test {
public static void main (String[] args) {
byte b = 100;
b *= 100;
System.out.println(b);
}
}
Which cause a compiler error?
what should be the output of this code block?
public class abekus
{
public static void main(String[] args) {
String input = " abekus . com ";
input = input.trim();
System.out.println(input.length());
}
}
Which polymorphism feature is related to parent and child class relationships in Java?
What will be the output of the following Java program?
import java.io.*;
class Chararrayinput
{
public static void main(String[] args)
{
String obj = "abcdef";
int length = obj.length();
char c[] = new char[length];
obj.getChars(0, 3, c, 0);
CharArrayReader input2 = new CharArrayReader(c, 0, 3);
int i;
try
{
while ((i = input2.read()) != -1)
{
System.out.print((char)i);
}
}
catch (IOException e)
{
e.printStackTrace();
}
}
}