Question: Exercise 1 (15): If you have a question about whether something is legal, and what happens if it is not, a good way to find

 Exercise 1 (15): If you have a question about whether something

Exercise 1 (15): If you have a question about whether something is legal, and what happens if it is not, a good way to find out is to ask the compiler. Answer the following questions by trying them out. What happens if you invoke a value method and don't do anything with the result; that is, if you don't assign it to a variable or use it as part of a larger expression. What happens if you use a void method as part of an expression? For example, try System.out.println("boo!") + 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!