nerdexam
Oracle

1Z0-851 · Question #25

1Z0-851 Question #25: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #25. The question stem and answer options stay visible for context.

Question

Given classes defined in two different files: package util; public class BitUtils { private static void process(byte[] b) {} } 01. package app; 02. public class SomeApp { 03. public static void main(String[] args) { 04. byte[] bytes = new byte[256]; 05. // insert code here 06. } 07. } What is required at line 5 in class SomeApp to use the process method of BitUtils?

Options

  • Aprocess(bytes);
  • BBitUtils.process(bytes);
  • Capp.BitUtils.process(bytes);
  • Dutil.BitUtils.process(bytes);
  • Eimport util.BitUtils.*; process(bytes);
  • FSomeApp cannot use the process method in BitUtils.

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.

Full 1Z0-851 Practice