1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Darina [25.2K]
3 years ago
13

Assume that the following code exists inside a method of the class MyClass, and that this code compiles without errors: int resu

lt = book.getYearPublished(); where book is an object of the Book class. Which of the following is not true about the getYearPublished method? It is a mutator method. It is a public method in the Book class. It returns a String.
Computers and Technology
2 answers:
german3 years ago
6 0

Answer: The getYearPublished method is not a mutator method nor does it return a string.

DanielleElmas [232]3 years ago
4 0

Answer:

"it returns a string"  is not true about the method.

Explanation:

Since int result = book.getYearPublished() compiles without errors inside a method of the MyClass, "int result " part of the code states that the method returns an integer, not a string. getYearPublished is a mutator method and a public method in the Book class.

You might be interested in
What is the difference between Data and information?​
Ksivusya [100]

Answer:

Data is a piece of an Information or a raw form of information while an Information is a processed Data.

Explanation:

An example of Data would be Alphabets of someone's name while the name would be an example of an Information.

On it's own, data makes no sense and needs to be processed to become Information which makes sense.

6 0
3 years ago
Which teamwork characteristic motivates your team members to perform better?
scoundrel [369]
Maybe Encouragement? I don't know, are there any choices to choose from?
4 0
3 years ago
Read 2 more answers
Give a real-world example of a selection control structure.
yuradex [85]

An example of selection structure is when a group of people wanted to know the exact  number of days through the use of a data set that has the daily high temperature which ranges from above 80 degrees, and as such, a programmer can use the if-end statement.

<h3>What is an if statement?</h3>

An IF statement is known to be a kind of statement that is executed due to the happening of a specific condition.

Note that IF statements must start with IF and end with the END.

Therefore, An example of selection structure is when a group of people wanted to know the exact  number of days through the use of a data set that has the daily high temperature which ranges from above 80 degrees, and as such, a programmer can use the if-end statement.

Learn more about  if-end statement from

brainly.com/question/18736215

#SPJ1

6 0
2 years ago
Koi friend online hai kya​
Arlecino [84]

Answer:

yes

good afternoon friend

8 0
3 years ago
Which of the following advancements in agriculture is most environmentally conscious?
Otrada [13]
Aquaculture or genetic engineering!
5 0
3 years ago
Other questions:
  • Accessing programs and documents by way of icon
    12·1 answer
  • Which of the following is NOT a means of advertising on websites?
    12·2 answers
  • Which of these is NOT an example of a programming language?
    12·2 answers
  • Which term is used to describe bitmap images
    8·2 answers
  • While inserting images, the Picture command is usually used to insert photos from a digital camera, and the Clip Art command is
    7·2 answers
  • Create a stored procedure sp_Q1 that takes two country names like 'Japan' or 'USA'as two inputs and returns two independent sets
    10·1 answer
  • Which of the following organizations offers a family of business management system standards that details the steps recommended
    12·1 answer
  • Write down the step to search information internet​
    12·1 answer
  • How can you make sure that your private information<br> stays private?
    12·1 answer
  • What is a video input device? .​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!