帮我做下题,准确高的加分1.Which method must exist in every Java applicat

梁清扬2022-10-04 11:39:541条回答

帮我做下题,准确高的加分
1.
Which method must exist in every Java application?
(a) main
(b) paint
(c) begin
(d) init
--------------------------------------------------------------------------------
2.
Which of the following statements is (are) true about the use of an asterisk (*) in a Java import statement?
It does not incur run-time overhead.
It can be used to import multiple packages with a single statement.
It can be used to import multiple classes with a single statement.
(a) I,II,and III
(b) III only
(c) I only
(d) I and III only
--------------------------------------------------------------------------------
3.
What will be output when the following Java program segment is executed?
int x = 5;
int y = 2;
System.out.println(x + y);
(a) 5 2
(b) 5+2
(c) 7
(d) 52
--------------------------------------------------------------------------------
4.
In Java,exceptions that are not handled are passed up the
(a) catch blocks
(b) call stack
(c) block hierarchy
(d) exception ladder
--------------------------------------------------------------------------------
5.
What is the name of the JDK program that processes Javadoc comments?
(a) java
(b) javac
(c) javacom
(d) javadoc
--------------------------------------------------------------------------------
6.
According to the Java code conventions,files longer than _____ lines should be _____.
(a) 2000,encouraged
(b) 2000,avoided
(c) 100,avoided
(d) 100,encouraged
--------------------------------------------------------------------------------
7.
A tool that allows programmers to execute lines of a program one line at a time in order to help locate the source of a program's errors is known as a(n)
(a) scope
(b) exception handler
(c) debugger
(d) stack trace
--------------------------------------------------------------------------------
8.
UML class diagrams can describe which of the following?
The internal structure of classes
Relationships between classes
(a) I only
(b) I and II
(c) II only
(d) None
--------------------------------------------------------------------------------
9.
Consider the following UML class diagram.
The diagram describes a
(a) one-to-one relationship
(b) relationship between a subclass and a superclass
(c) self-containing class
(d) class without methods
--------------------------------------------------------------------------------
10.
When using noun-phrase analysis to model a software system,which of the following should typically be eliminated from the list of potential classes?
References to the software system itself
Nouns that imply roles between objects
Synonyms to other nouns in the list
(a) I and III only
(b) I,II,and III
(c) III only
(d) II and III only

已提交,审核后显示!提交回复

共1条回复
gaochaogaochao 共回答了22个问题 | 采纳率95.5%
1
2
4
1
1
3
4
3
4
1
1年前

相关推荐

大家在问