网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
Given classes defined in two different files:  1. package util;  2. public class BitUtils {  3. public static void process(byte[]) { /* more code here */ }  4. }  1. package app;  2. public class SomeApp {  3. public static void main(String[] args) {  4. byte[] bytes = new byte[256];  5. // insert code here  6. }  7. }  What is required at line 5 in class SomeApp to use the process method of BitUtils?()
A

 process(bytes);

B

 BitUtils.process(bytes);

C

 util.BitUtils.process(bytes);

D

 SomeApp cannot use methods in BitUtils.

E

 import util.BitUtils.*; process(bytes);


参考答案

参考解析
解析: 暂无解析
更多 “单选题Given classes defined in two different files:  1. package util;  2. public class BitUtils {  3. public static void process(byte[]) { /* more code here */ }  4. }  1. package app;  2. public class SomeApp {  3. public static void main(String[] args) {  4. byte[] bytes = new byte[256];  5. // insert code here  6. }  7. }  What is required at line 5 in class SomeApp to use the process method of BitUtils?()A  process(bytes);B  BitUtils.process(bytes);C  util.BitUtils.process(bytes);D  SomeApp cannot use methods in BitUtils.E  import util.BitUtils.*; process(bytes);” 相关考题
考题 Given two different character sets (A and B), which of the following must be true for A to be considered a strict superset of B?() A. A must contain all of the characters defined in BB. A must be UnicodeC. The encoded values in A must match the encoded values in B for all characters defined in BD. A must be a multibyte character setE. The encoded values in A must match the encoded values in B for all numeric and alphabetic characters in B

考题 Which two statements are correct about database transportation?() (Choose two.) A. The source and target platforms must be the sameB. Redo logs, control files and temp files are also transportedC. The transported database must have the same database identifier (DBID) as the source database and cannot be changedD. The COMPATIBLE parameter must be set to 10.0.0.0 or higher and the database must be opened in readonly mode before being transportedE. Recovery Manager (RMAN) is used to convert the necessary data files of the database if the target platform is different and has different endian format

考题 Given two different character sets (A and B), which of the following must be true for A to be considered a strict superset of B?()A、 A must contain all of the characters defined in BB、 A must be UnicodeC、 The encoded values in A must match the encoded values in B for all characters defined in B D、 A must be a multibyte character setE、 The encoded values in A must match the encoded values in B for all numeric and alphabetic character

考题 How are the commands a user is allowed to enter defined in JUNOS?()A、Permissions are configured individually for each user.B、Users are associated with user classes, and each class defines the permissions for entering commands.C、There are four default classes with different permissions and you can only use these four.D、Permissions are associated with each user ID

考题 Which two statements are correct about database transportation?() A、 The source and target platforms must be the sameB、 Redo logs,control files and temp files are also transportedC、 The transported database must have the same database identifier (DBID) as the source database and cannot be changedD、 The COMPATIBLE parameter must be set to 10.0.0.0 or higher and the database must be opened in readonly mode before being transportedE、 Recovery Manager (RMAN) is used to convert the necessary data files of the database if the target platform is different and has different endian format

考题 Given a file GrizzlyBear.java:  1. package animals.mammals;  2.  3. public class GrizzlyBear extends Bear {  4. void hunt() {  5. Salmon s = findSalmon();  6. s.consume();  7. }  8. }  and another file, Salmon.java:  1. package animals.fish; 2.  3. public class Salmon extends Fish {  4. void consume() { /* do stuff */ }  5. }  Assume both classes are defined in the correct directories for theft packages, and that the Mammal class correctly defines the findSalmon() method. Which two changes allow this code to compile correctly?()A、 add public to the start of line 4 in Salmon.javaB、 add public to the start of line 4 in GrizzlyBear.javaC、 add import animals.mammals.*; at line 2 in Salmon.javaD、 add import animals.fish.*; at line 2 in GrizzlyBear.javaE、 add import animals.fish.Salmon.*; at line 2 in GrizzlyBear.javaF、 add import animals.mammals.GrizzlyBear.*;at line 2 in Salmon.java

考题 A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access control?()         A、 privateB、 no modifierC、 publicD、 protected

考题 Which two statements are true of login classes?()A、Users can be members of multiple login classes.B、Login classes define authorization parameters for a user.C、There are five system-defined login classes.D、Login class permission flags can be overridden for certain commands.

考题 User defined locale files can be stored in which two locations?()A、DRAMB、SDRAMC、CME flash,slot0D、CUE flash,slot0E、TFTP directory specified by cnf-file location command

考题 Given that b and c refer to instances of wrapper classes, which two statements are true?()A、 b.equals(b) returns true.B、 b.equals(c) returns the same result as b == c.C、 b.eqials(c) can return false even if c.equals(b) returns true.D、 b.equals(c) throws an exception if b and c are different wrapper types.E、 b.equals(c) returns false if the type of wrapper objects being compared are different.

考题 It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()  A、Mark the method with the keyword public.B、Mark the method with the keyword protected.C、Mark the method with the keyword private.D、Mark the method with the keyword package.E、Do not mark the method with any accessibility modifiers.

考题 In which two web application directories can dependent classes and libraries be located? ()A、 /WEB-INF/lib as a JAR fileB、 /META-INF/lib as a JAR fileC、 /classes as compiled class filesD、 /WEB-INF/lib as compiled class filesE、 /WEB-INF/classes as compiled class filesF、 /META-INF/classes as compiled class files

考题 Which two statements are true regarding a PL/SQL package body?()A、It cannot be created without a package specification.B、It cannot invoke subprograms defined in other packages.C、It can contain only the subprograms defined in the package specification.D、It can be changed and recompiled without making the package specification invalid.

考题 多选题Which two statements are correct about database transportation?() (Choose two.)AThe source and target platforms must be the sameBRedo logs, control files and temp files are also transportedCThe transported database must have the same database identifier (DBID) as the source database and cannot be changedDThe COMPATIBLE parameter must be set to 10.0.0.0 or higher and the database must be opened in readonly mode before being transportedERecovery Manager (RMAN) is used to convert the necessary data files of the database if the target platform is different and has different endian format

考题 单选题It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()A Mark the method with the keyword public.B Mark the method with the keyword protected.C Mark the method with the keyword private.D Mark the method with the keyword package.E Do not mark the method with any accessibility modifiers.

考题 单选题Given classes defined in two different files:  1. package util;  2. public class BitUtils {  3. public static void process(byte[]) { /* more code here */ }  4. }  1. package app;  2. public class SomeApp {  3. public static void main(String[] args) {  4. byte[] bytes = new byte[256];  5. // insert code here  6. }  7. }  What is required at line 5 in class SomeApp to use the process method of BitUtils?()A  process(bytes);B  BitUtils.process(bytes);C  util.BitUtils.process(bytes);D  SomeApp cannot use methods in BitUtils.E  import util.BitUtils.*; process(bytes);

考题 单选题Given classes defined in two different files: 1.package util; 2.public class BitUtils{ 3.private static void process(byte[]b){} 4.} 1.package app; 2.public class SomeApp{ 3.public static void main(String[]args){ 4.byte[]bytes=newbyte[256]; 5.//insert code here 6.} 7.} What is required at line 5 in class SomeApp to use the process method of BitUtils?()A process(bytes);B BitUtils.process(bytes);C app.BitUtils.process(bytes);D util.BitUtils.process(bytes);E importutil.BitUtils.*;process(bytes);F SomeApp cannot use the process method in BitUtils.

考题 单选题Given classes defined in two different files:  1. package util;  2. public class BitUtils {  3. private static void process(byte[] b) { }  4. }  1. package app;  2. public class SomeApp {  3. public static void main(String[] args) {  4. byte[] bytes = new byte[256];  5. // insert code here  6. }  7. }  What is required at line 5 in class SomeApp to use the process method of BitUtils?()A  process(bytes);B  BitUtils.process(bytes);C  app.BitUtils.process(bytes);D  util.BitUtils.process(bytes);E  import util.BitUtils. *; process(bytes);F  SomeApp cannot use the process method in BitUtils.

考题 多选题Given two different character sets (A and B), which of the following must be true for A to be considered a strict superset of B?()AA must contain all of the characters defined in BBA must be UnicodeCThe encoded values in A must match the encoded values in B for all characters defined in BDA must be a multibyte character setEThe encoded values in A must match the encoded values in B for all numeric and alphabetic characters in B

考题 多选题Which two statements are true regarding a PL/SQL package body?()AIt cannot be created without a package specification.BIt cannot invoke subprograms defined in other packages.CIt can contain only the subprograms defined in the package specification.DIt can be changed and recompiled without making the package specification invalid.

考题 单选题A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access control?()A  privateB  no modifierC  publicD  protected

考题 多选题In which two web application directories can dependent classes and libraries be located? ()A/WEB-INF/lib as a JAR fileB/META-INF/lib as a JAR fileC/classes as compiled class filesD/WEB-INF/lib as compiled class filesE/WEB-INF/classes as compiled class filesF/META-INF/classes as compiled class files

考题 多选题Given that b and c refer to instances of wrapper classes, which two statements are true?()Ab.equals(b) returns true.Bb.equals(c) returns the same result as b == c.Cb.eqials(c) can return false even if c.equals(b) returns true.Db.equals(c) throws an exception if b and c are different wrapper types.Eb.equals(c) returns false if the type of wrapper objects being compared are different.

考题 多选题Which two statements are true of login classes?()AUsers can be members of multiple login classes.BLogin classes define authorization parameters for a user.CThere are five system-defined login classes.DLogin class permission flags can be overridden for certain commands.

考题 多选题User defined locale files can be stored in which two locations?()ADRAMBSDRAMCCME flash,slot0DCUE flash,slot0ETFTP directory specified by cnf-file location command

考题 单选题How are the commands a user is allowed to enter defined in JUNOS?()A Permissions are configured individually for each user.B Users are associated with user classes, and each class defines the permissions for entering commands.C There are four default classes with different permissions and you can only use these four.D Permissions are associated with each user ID

考题 单选题Given classes defined in two different files:What is required at line 5 in class SomeApp to use the process method of BitUtils?()A process(bytes);B BitUtils.process(bytes);C util.BitUtils.process(bytes);D SomeApp cannot use methods in BitUtils.E import util.BitUtils.*; process(bytes);

考题 单选题Given classes defined in two different files: What is required at line 5 in class SomeApp to use the process method of BitUtils?()A process(bytes);B BitUtils.process(bytes);C app.BitUtils.process(bytes);D util.BitUtils.process(bytes);E import util.BitUtils.*; process(bytes);F SomeApp cannot use the process method in BitUtils.