Question: 9. Suppose num is a private integer. Which of the following is its mutator (set) method? (a) public void setNum(int num) { (c) public int

 9. Suppose num is a private integer. Which of the following

9. Suppose num is a private integer. Which of the following is its mutator (set) method? (a) public void setNum(int num) { (c) public int setNum(int num) { System.out.println(num); return num; } (b) public void setNum(int num) { this.num = num; } (d) public int setNum(int num) { return this.num + num; } 10. Which of the following loops print the positive numbers that are less than 100 and are divisible by 5? (a) for(int i=1; i

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!