subject

What error, if any, is in the following code?

public class Test {
private int num;
private void setNum(int n) {
num = n;
}
}

a. setNum should have no parameter.
b. setNum must be public.
c. setNum should return int, not void.
d. Code is correct as is.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
You know the right answer?
What error, if any, is in the following code?

public class Test {
private int nu...
Questions
question
Mathematics, 22.07.2019 16:30
question
Mathematics, 22.07.2019 16:30
Questions on the website: 13722362