多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR fi...
Monday, March 4, 2024
单选题A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()A java.util.QueueB java.util.ArrayListC java....
Thursday, January 11, 2024
单选题Given: What is the result?()A 1B 2C 12D Compilation fails.E No output is produced.F An exception is thrown at runtime....
单选题Given: Which regular expression, inserted at line 12, correctly splits test into "Test A", "Test B", and "Test C"?()A String regex="";B String regex=" .";C String regex=".*";D String regex="//s";E String regex="//.//s*";F String regex="//w[/.]+...
单选题Given: What is the result?()A HelloB Hello WorldC Compilation fails.D Hello World 5E The code runs with no output.F An exception is thrown at runtime....
单选题A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company's chief scientist has just improved the performance of one of the utility classes' k...
Sunday, December 10, 2023
Wednesday, January 3, 2024
单选题Given: What is the result?()A nullB finallyC null finallyD Compilation fails.E finally exception...
多选题Given: Which two methods, inserted independently at line 17, correctly complete the Sales class?()Adouble getSalesAmount() { return 1230.45; }Bpublic double getSalesAmount() { return 1230.45; }Cprivate double getSalesAmount() { return 1230.45; }Dprote...
单选题Given: What is the result?()A 2B 24C 234D 246E 2346F Compilation fails....
单选题Given that t1 is a reference to a live thread, which is true?()A The Thread.sleep() method can take t1 as an argument.B The Object.notify() method can take t1 as an argument.C The Thread.yield() method can take t1 as an argument.D The Thread.setPriorit...
单选题Which Man class properly represents the relationship "Man has a best friend who is a Dog"?()A class Man extends Dog { }B class Man implements Dog { }C class Man { private BestFriend dog; }D class Man { private Dog bestFriend; }E class Man { private Dog...
Tuesday, November 14, 2023
多选题Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()An = 100;Bi.setX( 100 );Co.getY().setX( 100 );Di = new Inner(); i.setX( 100 );Eo.setY( i ); i = new Inner(); i.setX( 100 );Fi = new Inner(); i...
单选题Given: Which code, inserted at line 15, creates an instance of the Point class defined in Line?()A Point p = new Point();B Line.Point p = new Line.Point();C The Point class cannot be instatiated at line 15.D Line l = new Line() ; l.Point p = new l...
单选题Given: What is the output?()A 42B 420C 462D 42042E Compilation fails.F An exception is thrown at runtime....
单选题Given: What is the result?()A 2B 3C 12D 23E 123F Compilation fails.G An exception is thrown at runtime....
Thursday, November 9, 2023
单选题Given: What is the result when the go( ) method is invoked?()A 00B 0001C 000120D 00012021E Compilation fails.F An exception is thrown at runtime....