Java题库——Chapter17 二进制I/0】的更多相关文章

Introduction to Java Programming 的最后一章,完结撒花!Chapter 17 Binary I/O Section 17.2 How is I/O Handled in Java?1. Which of the following statements are true?a. A File object encapsulates the properties of a file or a path, but does not contain the methods…
1)Which code fragment would correctly identify the number of arguments passed via the command line to a Java application, excluding the name of the class that is being invoked? 哪个代码片段可以正确地标识通过命令行传递给Java应用程序的参数的数量,而不包括正在调用的类的名称? A)int count=0; while (…
)What is the output of running class Test? public class Test { public static void main(String[ ] args) { new Circle9(); } } public abstract class GeometricObject { protected GeometricObject() { System.out.print("A"); } protected GeometricObject(…
1)________ represents an entity(实体) in the real world that can be distinctly identified. 1) _______ A)A data field B) An object C)A method D) A class 2)________ is a construct that defines objects of the same type.  2) _______ A)A method B) A data fi…
Chapter 16 JavaFX UI Controls and Multimedia Section 16.2 Labeled and Label1. To create a label with the specified text, use __________.a. new Labelled();b. new Label();c. new Labelled(text);d. new Label(text);Key:d #2. To set a red color for the tex…
Chapter 14 JavaFX Basics Section 14.2 JavaFX vs Swing and AWT1. Why is JavaFX preferred?a. JavaFX is much simpler to learn and use for new Java programmers.b. JavaFX provides a multi-touch support for touch-enabled devices such as tablets and smart p…
异常处理 1)What is displayed on the console when running the following program? class Test { public static void main (String[ ] args) { try { System.out.println("Welcome to Java"); } finally { System.out.println("The finally clause is executed&…
1)Analyze the following code: public class Test { public static void main(String[ ] args) { B b = new B(); b.m(5); System.out.println("i is " + b.i); } } class A { int i; public void m(int i) { this.i = i; } } class B extends A { public void m(S…
1)You can declare two variables with the same name in ________. 1) _______ A)a method one as a formal parameter and the other as a local variable B)different methods in a class C)two nested blocks in a method (two nested blocks means one being inside…
1)What is the representation of the third element in an array called a? 1) _______ A)a(3) B) a(2) C) a[2] D) a[3] 2)If you declare an array double[ ] list = {3.4, 2.0, 3.5, 5.5}, list[1] is ________. 2) _______ A)3.4  B)5.5  C)2.0  D)3.4  E)undefined…