AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-851





Question ID 3788

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?
 

Option A

A.    process(bytes);
 

Option B

B.    BitUtils.process(bytes);
 

Option C

C.    app.BitUtils.process(bytes);
 

Option D

D.    util.BitUtils.process(bytes);
 

Option E

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

Option F

F.    SomeApp cannot use the process method in BitUtils.
 

Correct Answer F
Explanation


Question ID 3789

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where the old 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?

 

Option A

A.    /test/Chess.class
 

Option B

B.    /home/bob/Chess.class
 

Option C

C.    /test/games/Chess.class
 

Option D

D.    /usr/lib/games/Chess.class

Correct Answer C
Explanation

Send email to admin@getfreedumps for new dumps request!!!