Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

5. Who should facilitate the focus group?

Answered: 1 week ago