new element be inserted at the head of the list
Which operation is used to remove an element from a stack?
What will be the output of the following Java code?
Identify the correct way of declaring a multidimensional array in Java.
Which of these access specifiers can be used for an interface?
Which of this class contains all the methods present in the Math class?
class A
{
public static void main(String args[])
{
int a = 1;
if (a == 1)
{
int a = 2;
System.out.println(a);
}
}
}
class test{
public static void main (String[] args) {
String str="My name is Joker";
if(str.charAt(9)>100)
{
System.out.println(Integer.toBinaryString(32/4));
}
else
{
System.out.println(Double.parseDouble("100"));
}
}
}
What is the output of the following Java code?
class output
{
public static void main(String args[])
{
String str1 = " Hello World ";
String str2 = str1.trim();
System.out.println("\""+str2+"\"");
}
}
What will be the output of the program?
class PassA
{
public static void main(String [] args)
{
PassA p = new PassA();
p.start();
}
void start()
{
long [] a1 = {3,4,5};
long [] a2 = fix(a1);
System.out.print(a1[0] + a1[1] + a1[2] + " ");
System.out.println(a2[0] + a2[1] + a2[2]);
}
long [] fix(long [] a3)
{
a3[1] = 7;
return a3;
}
}