What is required at line 5 in class SomeApp to use the process method of BitUtils?

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?

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?

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

B.
SomeApp cannot use methods in BitUtils.

C.
process(bytes);

D.
util.BitUtils.process(bytes);

E.
BitUtils.process(bytes);



Leave a Reply 0

Your email address will not be published. Required fields are marked *