Multiple choice technology programming languages

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?

  1. process(bytes);

  2. BitUtils.process(bytes);

  3. app.BitUtils.process(bytes);

  4. util.BitUtils.process(bytes);

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

  6. SomeApp cannot use the process method in BitUtils.

Reveal answer Fill a bubble to check yourself
F Correct answer
Explanation

The process() method in BitUtils is declared as private static. Private methods are not accessible outside their own class, even with fully qualified names or imports. SomeApp cannot access this method regardless of how it's called.