Java Methods

Java Methods

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the name of the method?
public static void nameReverse(String first, String last)

Back

nameReverse

2.

FLASHCARD QUESTION

Front

What data type does the function method return?
public static int sum(float num1, double num2)

Back

int

3.

FLASHCARD QUESTION

Front

What are the parameters?
public static void fullName(String userFirst, char userMiddle, String userLast);

Back

userFirst, userMiddle, userLast

4.

FLASHCARD QUESTION

Front

These control the behavior of a program.

Back

method

5.

FLASHCARD QUESTION

Front

In a method, the return type should be __________ when the method returns no value.

Back

Void

6.

FLASHCARD QUESTION

Front

Can you have two methods with the same name in the same class file?

Back

YES

7.

FLASHCARD QUESTION

Front

Can you have two methods with the same name and same parameter list in the same class file?

Back

NO

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?