Which of the following has highest priority.
Which of these methods can mix all the elements of a list?
Prepared statement queries in JDBC are used to execute which type of queries
What will be the output of the following Java code?
class Output
{
public static void main(String[] args)
{
Double i = new Double(257.5);
boolean x = i.isNaN();
System.out.print(x);
}
}
What is the output of the following Java code?
package Abekus;
class A {
int a = 400;
}
class Main {
public static void main(String args[]) {
A o = new A();
System.out.println(o.a);
}
}
Predict the output of the following Java code.
class AbekusMain {
public static void main(String[] args) {
int a = -6;
System.out.println(a >> 1);
int b = 6;
System.out.println(b >> 1);
}
}
class Area
{
int breadth;
int length;
}
class mainclass
{
public static void main(String args[])
{
Area a = new Area();
System.out.print(a);
}
}
What is the output of the following Java program?
class Test {
public static void main(String[] args) {
for (int i = 0; 0; i++) {
System.out.println("Heyaa Welcome to Abekus");
break;
}
}
}
// It is a class Abekus.
package com.pk3;
public class Abekus{
void m1()
{
System.out.println("Protected method of Abekus has been called.");
}
}
// This is def class.
package com.pkg2;
import com.pk3.Abekus;
public class def extends Abekus {
public static void main(String args[]) {
Abekus A = new Abekus();
A.m1();
System.out.println("This is Abekus.com");
}
}
What will be the correct output?
What will be the output of the following Java program?
import java.io.*;
public class FileInputOutput {
public static void main(String[] args) {
String obj = "abc";
byte b[] = obj.getBytes();
ByteArrayInputStream obj1 = new ByteArrayInputStream(b);
for (int i = 0; i < 2; ++i) {
int c;
while ((c = obj1.read()) != -1) {
if (i == 0) {
System.out.print(Character.toUpperCase((char)c));
}
}
}
}
}