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
babunello [35]
3 years ago
5

Which of the following method calls are legal?a. mathMethod(x);b. mathMethod(y);c. mathMethod(x, y);d. mathMethod(x + y);e. math

Method(12L);f. mathMethod(12);g. mathMethod(12.2);h. mathMethod();i. mathMethod(a);j. mathMethod(a / x);
Computers and Technology
1 answer:
Roman55 [17]3 years ago
7 0

Answer:

Option a, b, d, f, and j is legal method calls.

Explanation:

In the given question some information is missing, that is the method definition which can be described as follows:

Method definition:

int x =2, y=3; //defining integer variable

int mathMethod (int x)  //method definition

{//method body

int z=x+y; //calculate value

return z;  //return value

}

In the given question option a, b, d, f, and j  is legal, because these options follow the correct syntax, and other option were incorrect which can be defined as follows:

  • In option c, It is illegal because it accepts only one parameter.
  • In option e, It is accepts long number, that's why it is illegal.
  • In option g, It accepts float value, that's why it is illegal.
  • In option h, It doesn't accepts any parameter.
  • In option i, It isn't use in method.
You might be interested in
What is the meaning of the FN key and what is its Function
nevsk [136]

fn is to talk to the computer

7 0
2 years ago
Quinn is opening an Excel workbook and receives an information bar and warning that the workbook contains macros. Quinn is promp
Andrew [12]

Answer:

Check where the file originates from, and if it is a trusted source or his own workbook, click Enable Content.

Explanation:

4 0
2 years ago
Read 2 more answers
What is the purpose of an experiment in the scientific method ?
Bas_tet [7]
B. to test the hypothesis
5 0
2 years ago
Read 2 more answers
You have recently been hired as the staff attorney at a growing independent film studio in Van Nuys, California. Among your duti
expeople1 [14]

Answer: dude it’s all mussed in where the question

Explanation:

4 0
2 years ago
Which option should you choose to review detailed markups within a document?
SCORPION-xisa [38]

Answer:

d

Explanation:

8 0
2 years ago
Read 2 more answers
Other questions:
  • Whichof the following is not a standard method called as part of the JSPlife cycle?jspInit()jspService()_jspService()jspDestroy(
    12·1 answer
  • In Python,The sum of the elements in a tuple can be recusively calculated as follows:The sum of the elements in a tuple of size
    5·1 answer
  • What is the difference between a Network Diagram and a Wiring Semantic?
    5·1 answer
  • Explain in details three security countermeasures you know.​
    10·1 answer
  • NEED ANSWER ASAP. CORRECT ANSWER GETS BRAINLIEST! TY
    5·1 answer
  • Political parties to address the interest of civil society<br>​
    7·1 answer
  • Alexis received paychecks from both her jobs and she would like to deposit them. One check is for $62.88 and the other is $523.2
    9·1 answer
  • The ______ Works on a single variable or constant. *​
    8·1 answer
  • What distinguishes Accenture as a holistic provider of Extended Reality (XR) services?.
    9·1 answer
  • I have been trying to use brainly recently but i cant because everytime i watch an ad to get an answer, its an interactive ad, s
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!