Which can be used to encode charS for output?()
A. Java.io.OutputStream. B. Java.io.OutputStreamWriter. C. Java.io.EncodeOutputStream. D. Java.io.EncodeWriter. E. Java.io.BufferedOutputStream.
Which gets the name of the parent directory file “file.txt”?()
A. String name= File.getParentName(“file.txt”); B. String name= (new File(“file.txt”)).getParent(); C. String name = (new File(“file.txt”)).getParentName(); D. String name= (new File(“file.txt”)).getParentFile(); E. Directory dir=(new File (“file.txt”)).getParentDir(); String name= dir.getName();
You are assigned the task of building a panel containing a TextArea at the top, a label directly below it,and a button directly below the label. If the three components are added directly to the panel. Which layout manager can the panel use to ensure that the TextArea absorbs all of the free vertical space when the panel is resized?()
A. GridLayout. B. CardLayout. C. FlowLayout. D. BorderLayout. E. GridBagLayout.