129k views
1 vote
Assume that logger is a reference to an object that has a method named printLarger that accepts two int arguments and returns no value. Two int variables, sales1 and sales2, have already been declared and initialized. Write a statement that calls printLarger, passing it sales1 and sales2

1 Answer

3 votes

Answer:

When we talk about the info method of a Logger class we refer to Log an INFO message.

It is used to forward logs to all of the registered output objects.

Step-by-step explanation:

The statement that calls printLanger, passing it sales1 and sales2 is:

logger.printLarger(sales1, sales2);

User Filip Kraus
by
6.2k points