JVM converts bytecode into machine-specific code
final variable must be initialized at the time of declaration
Which of these is the superclass of the Byte and Short wrapper classes?
Which of the following methods always hits the database?
Spliterator() is used creates a late-binding and fail-fast Spliterator over the elements in this list.
public class operators {
public static void main(String[] args)
{
int a = 20, b = 10, c = 0, d = 20, e = 40, f = 30;
System.out.println((b * d / f));
}
}
class test{
public static void main (String[] args) {
int x = -4,y=4;
System.out.println((x>>1)+" "+(y>>1));
}
}
Deduce the output of the following code:
public class ex {
int x=20;
public static void main(String[] args) {
ex myObj = new ex();
myObj.x = 40;
System.out.println(myObj.x);
}
}
public class Demo123{
public static void main(String args[]){
String s1= null ;
if(s1.length()==0){
System.out.println("0");
}
else{
System.out.println("1");
}
}
}
Statement 1- PipedReader is a type of character stream
Statement 2- BufferedWriter is a type of character stream
Statement 3- charArrayReader is a type of character stream