The list is a class
Serialized objects can be transferred via a network.
byte x=64, y;
y= (byte) (x<<2);
System.out.println(y);
How can we get the size of a specified file?
Which of the following Java reference types cannot be generic?
Predict the output of the following Java code.
class Abekus {
public static void main(String args[]) {
char ch;
System.out.println(ch);
}
}
public class abekus{
public static void main(String[] args){
int a = 0;
a +=5;
switch(a){
case 5: System.out.print("5");
case 10: System.out.println("10");break;
default: System.out.println("0");
}
}
}
Statement 1 - The package of Arrays is lang.
Statement 2 - The package of Arrays is util.
Statement 3 - The package of Arrays is io.
public class Demo123{
public static void main(String args[]){
int i ;
for(i=0;i<10;i--){
System.out.print( i+ " ");
if(i==-3)
break;
}
}
}
Predict the output of the following Java code.
class Abekus
{
public static void main(String[] args)
{
int[] array1 = {10, 20, 30, 40, 50};
int[] array2 = {10, 20, 30, 40, 50};
if (array1 == array2)
System.out.println("Array1 and Array2 are equal.");
else
System.out.println("Array1 and Array2 are not equal.");
}
}