Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me answer this long question! i will leave a like thank you! What does the 'void' key word indicate? That the parameters of

please help me answer this long question! i will leave a like thank you!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
What does the 'void' key word indicate? That the parameters of the method are all the same data type That the method does not return anything That the method does not require any arguments That the method is overloaded What does it mean when the parameter list is empty parentheses? the method is void the method will not return anything the parameters are all the same data type the method does not require any arguments What are 'overloaded' methods required to have? different parameters and different names different parameters and the same name the same parameters and a different name the same parameters and the same name class Main | //\#1 public static void main(String|l args) [ //\#2 String word = triple("Hello "); //\#3 System.out.println(word); //\#4 int number = triple(6); //#5 System.out.println(number); //\#6 3//#7 I/ Methods are defined below public static String triple(String input) //#8 return input + input + input; //\#9 3 //\#10 public static int triple(int num) //#11 int product = num 3;//#12 return product; //\#13 \} // \#14 \}//\#15 In the code above, where does the flow of execution go after it reaches the 'return' on line #13? $3 #5 #8 #15 In the code above, what method definition does the method call in line \#3 refer to? \#2 #5 #8 #11 public static int workOut(String sound, int times) System.out.println(sound); return times 9; \} Which method call matches the method definition above? String reps = workOut("whoop", 3); int reps = workOut( 3, "whoop"); int reps = workOut("whoop", 3); int reps = workOut(); Which of the following method definitions takes a String and returns an int? public static String go(int x ) public static void go(String x ) public static int go() public static int go( String x ) Which of the following method definitions does not take arguments, but returns an int? public static void go() public static int go( int) public static String go( int) public static int gol) Which of the following statements is true about the code above? The value in "number" was passed back from a call to 'count' The value in "franklin" was passed back to count by number The method 'count' must be defined as 'void' The method count takes an int and returns a String int number = count("franklin"); Which method definition would match the call above? public static int franklin(String word) public static int count(String word) public static String count(int word) public static void count(String word)

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

Students also viewed these Databases questions

Question

How do you calculate Adjusted Time Ratio and when?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago