Professional Documents
Culture Documents
Collections
Class?
an index - What do Lists have in common?
Vector - What type of List is used with synchronized access?
SortedList - Which of this interface is not a part of Java's collection framework?
clear() - Which of these methods deletes all the elements from invoking collection?
WeakHashMap doesn't allow null keys and null values. - Which of the following is
not true in case of a WeakHashMap?
true - You can't put null elements into Queues in the API?
false - The display(int) method of OutputStream Class is used to write a byte to the
current output stream.
flush() - A method of the FileWriter class that flushes the data of FileWriter.
FileReader (File file) - A constructor of the FileReader class that creates a new file
and get its file name in file objects.
false - create (char[] c) is a method of the FileWriter class that is used to write char array
into FileWriter.
True- close() is a method of the FileWriter class that is used to close the FileWriter.
write (char[] c) - A method of the FileWriter class that is used to write char array
into FileWriter.
Coding shortcuts
fill()
Array
compare()
Set
Speed
No
true
false
true
An output stream accepts output bytes and sends them to some sink.
System.out