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?()
第1题:
How are the commands a user is allowed to enter defined in JUNOS?()
第2题:
Which two statements are true of login classes?()
第3题:
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?()
第4题:
Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
第5题:
students' language proficiency
the number of students
wait-time allowed after a question
feedback given to students after they answer the questions
第6题:
Mark the method with the keyword public.
Mark the method with the keyword protected.
Mark the method with the keyword private.
Mark the method with the keyword package.
Do not mark the method with any accessibility modifiers.
第7题:
A must contain all of the characters defined in B
A must be Unicode
The encoded values in A must match the encoded values in B for all characters defined in B
A must be a multibyte character set
The encoded values in A must match the encoded values in B for all numeric and alphabetic characters in B
第8题:
If the compile is successful, Utils.class is added to the source directory.
The compiler returns an invalid flag error.
If the compile is successful, Utils.class is added to the classes directory.
If the compile is successful, Utils.class is added to the bigProject directory.
第9题:
Compilation fails because of an error in line 7.
Compilation fails because of an error in line 9.
If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line 5.
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 5.
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.
第10题:
1
2
3
4
第11题:
Permissions are configured individually for each user.
Users are associated with user classes, and each class defines the permissions for entering commands.
There are four default classes with different permissions and you can only use these four.
Permissions are associated with each user ID
第12题:
process(bytes);
BitUtils.process(bytes);
util.BitUtils.process(bytes);
SomeApp cannot use methods in BitUtils.
import util.BitUtils.*; process(bytes);
第13题:
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?()
第14题:
Overlay Transport Virtualization (OTV) join interface is used to source the OTV encapsulated traffic and send it to the Layer 3 domain of the data center network. Which statements are true about OTV join interface? ()
第15题:
How many strict-high priority forwarding classes can be applied to a given interface?()
第16题:
If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line 5.
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 5.
Compilation fails because of an error in line 9.
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.
Compilation fails because of an error in line 3.
Compilation fails because of an error in line 7.
第17题:
Students' language proficiency.
The number of students.
Wait-time allowed after a question.
Feedback given to students after they answer the questions.
第18题:
process(bytes);
BitUtils.process(bytes);
util.BitUtils.process(bytes);
SomeApp cannot use methods in BitUtils.
import util.BitUtils.*; process(bytes);
第19题:
situated/connected
situated/connecting
situating/connected
situating/connecting
第20题:
private
no modifier
public
protected
第21题:
1
2
3
4
第22题:
Users can be members of multiple login classes.
Login classes define authorization parameters for a user.
There are five system-defined login classes.
Login class permission flags can be overridden for certain commands.
第23题:
Only one window can be open at any given time
Consumer groups are associated with windows
Windows work with job classes to control resource allocation
The database service name must be provided during windows creation
Windows can automatically start job or change resource allocation among jobs for various time periods.
第24题:
process(bytes);
BitUtils.process(bytes);
app.BitUtils.process(bytes);
util.BitUtils.process(bytes);
import util.BitUtils.*; process(bytes);
SomeApp cannot use the process method in BitUtils.