Can you make an array itself volatile?
The return type of Constructors is:
Which of these is a super class of wrappers Double & Integer?
Which of these classes is not included in the java.lang package?
What is the default access modifier when none is mentioned explicitly?
Which of these class is used to create an object whose character sequence is mutable?
LinkedList(Collection C): Used to create a ordered list which contains all the elements of a specified collection, as returned by the collection’s iterator.
Statement 1- int arr[] = new int [10]
Statement 2 - int [] arr=new int [10]
Statement 3 - int [] arr= int [] new
What will be the output of the following Java program?
class Output
{
public static void main(String[] args)
{
String s1 = "Hello";
String s2 = s1.replace('l', 'w');
System.out.println(s2);
}
}
What is the output of the following Java code?
class output {
public static void main(String args[]) {
StringBuffer c = new StringBuffer("Hello");
StringBuffer c1 = new StringBuffer(" World");
c.append(c1);
System.out.println(c);
}
}