clone() : This method returns a shallow copy of this Linked List.
How can you sort an array in Java?
Which Java component is responsible for converting bytecode into machine-specific code?
peak operation can be used to.
Which of this class is not related to input and output stream in terms of functioning?
Offerfirst() used to
What will be the output of the following Java code?
Statement 1- All wrapper class are the comparable type
Statement 2- String is the comparable type
Statement 3- Date is the comparable type
Statement 4-All classes are the comparable type
Which of the following statements about string methods is correct?
import java.util.*;
public class output
{
public static void main(String args[])
{
LinkedList list = new LinkedList();
list.add(new Integer(2));
list.add(new Integer(8));
list.add(new Integer(5));
list.add(new Integer(1));
Iterator i = list.iterator();
Collections.reverse(list);
Collections.sort(list);
while(i.hasNext())
System.out.print(i.next() + " ");
}
}