Oracle
1Z0-851 · Question #132
1Z0-851 Question #132: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #132. The question stem and answer options stay visible for context.
Question
Given classes defined in two different files: package util; public class BitUtils { public static void process(byte[] b) { /* more code here */ } } 1. package app; 2. 3. public class SomeApp { 4. public static void main(String[] args) { 5. byte[] bytes = new byte[256]; 6. // insert code here 7. } 8. } What is required at line 5 in class SomeApp to use the process method of BitUtils?
Options
- Aprocess(bytes);
- BBitUtils.process(bytes);
- Cutil.BitUtils.process(bytes);
- DSomeApp cannot use methods in BitUtils.
- Eimport util.BitUtils.*; process(bytes);
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.