单项选择题
Given: What is the result?()
A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar games.Chess Bob’s CLASSPATH is set (at login time) to: /usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar What is a possible location for the Chess.class file?()
Given: Which command-line invocations will compile?()
多项选择题
Given a pre-generics implementation of a method: What three changes allow the class to be used with generics and avoid an unchecked warning?()
Given: What is the appropriate definition of the hashCode method in class Person?()
Given: Which two statements are true?()
Given that Triangle implements Runnable, and: Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads totemporarily pause and allow the other thread to execute?()
Given: Which two code fragments, inserted independently at line 13, will compile?()
Given: Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
赞题库-搜题找答案
(已有500万+用户使用)
无需下载 立即使用
版权所有©考试资料网(ppkao.com)All Rights Reserved