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
leonid [27]
3 years ago
15

JAVA- If you have an int as the actual parameters, will it change to fit the parameters if it requires a double, or will the cod

e not compile? and vice versa, if you have a double but the parameters call for an int.
ex.
something(int x);

x= 5.0;
Computers and Technology
1 answer:
ivann1987 [24]3 years ago
6 0

If you have only 1 method that is not overloaded, then you will not be able to call it with inappropriate parameter types, that is, if the initial type of the parameter is int, then it will not be able to get the double, float, and other values, because of this an error will occur.

For this, method overloading is created.

Method overloading is when you create methods with the same name, but only the content and parameters of the methods are/can-be completely different.

You might be interested in
A touch screen can be used as both an input device and output device. explain how this is possible
Evgesh-ka [11]

Well, Touch screen is only an input device as it only takes the input resistance(or capacitance in new touch screens) value as per the touch on the screen. And this value of resistance would determine the location of the touch on the screen.

The output work is done by the LCD or LED displays, which displays some images and texts on screen.

Touch Screen is only a transparent glass which is place on that display and synchronized with the LED displays such that user is able to 'touch' or have a 'sense of touch' on the actual displays

5 0
3 years ago
The frame work for storing records in database is a
andreev551 [17]
The frame work for storing records in database is a report. (b)
3 0
3 years ago
It is possible to have motion in the absence of a force
den301095 [7]
Yes, motion continues after forces are no longer being applied. Otherwise, a ball wouldn't continue to roll after it left your hand.
No, gravitational forces from every piece of matter in the universe affect every other piece of matter in the universe. Gravity cannot be blocked.
6 0
3 years ago
Do you think should give credit to people who invented viral dances?
guajiro [1.7K]

Answer:

michal jackson i think who credit to people invented viral dances.

3 0
3 years ago
Read 2 more answers
9. The monumental failure of Atari's E.T Extra-terrestrial was, among other things, due to the fact that ______________
nlexa [21]

Answer:

c

Explanation:

5 0
3 years ago
Other questions:
  • Java - Given a String variable response that has already been declared, write some code that repeatedly reads a value from stand
    12·1 answer
  • Siva added a "Contact Form" to her website.
    10·1 answer
  • .Statements using the ___________ class are explicit conversions.
    8·1 answer
  • How can we compare a computer with human beings?
    14·1 answer
  • Drag the tiles to the correct boxes to complete the pairs.
    7·2 answers
  • Write a program that prompts the user for the name of two files each containing a single line that represents a decimal integerc
    11·1 answer
  • Computer data that is suitable for text​
    5·1 answer
  • Explain the following terms <br><br>copyleft:<br><br>creative Commons:<br><br>GNU/GPL:​
    8·1 answer
  • Who wants brainliest? First to answer gets it....
    12·2 answers
  • Most jobs in computer disciplines require which minimum level of education?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!