How many bits are in a single IPv4 address?
Which of the following is not a decision making system?
Which of these keywords is used to upper bound a wildcard in Java?
Which system property stores the installation directory of JRE?
Which InputStream method is used to read the integer representation of the next available byte input?
What is the term used to describe a relationship where objects have their own lifecycle and there is no owner?
public class Demo123{
public static void main(String args[]){
String s1= new String("Abekus");
System.out.println(s1.indexOf("a"));
}
}
What will be the output of the following Java program?
class Output
{
public static void main(String[] args)
{
String s = "Hello World";
int i = s.indexOf('o');
int j = s.lastIndexOf('l');
System.out.print(i + " " + j);
}
}
What will be the output of the following code?
class A
{
public static void main(String args[])
{
String str = "I" + "like" + "Mango";
System.out.println(str.length());
}
}
What is the output of the following Java code?
class exception_handling
{
public static void main(String args[])
{
try
{
int i, sum;
sum = 10;
for (i = -1; i < 3 ;++i)
{
sum = (sum / i);
System.out.print(i);
}
}
catch(ArithmeticException e)
{
System.out.print("0");
}
}
}