Java Methods

Flashcard
•
Computers
•
12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

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
8.
FLASHCARD QUESTION
Front
Which keyword defines that the method below can be called from outside this class file?
public static void fullName(userFirst,userMiddle,userLast);
Back
public
9.
FLASHCARD QUESTION
Front
Which of the following statements is correct?
Options:
Public method is accessible to all other classes in the hierarchy
Public method is accessible only to subclasses of its parent class
Public method can only be called by object of its class
Public method can be accessed by calling object of the public class
Back
Public method is accessible to all other classes in the hierarchy
Similar Resources on Wayground
13 questions
Introduction to C#

Flashcard
•
KG - University
10 questions
Java Basics 1

Flashcard
•
University
7 questions
Security Risks & Precautions

Flashcard
•
10th - 12th Grade
11 questions
A+ Core 2 Part I.01

Flashcard
•
11th Grade
8 questions
Online Banking Risks and What You Can Do

Flashcard
•
University
10 questions
Features of Java

Flashcard
•
University
10 questions
06 - Users and Permissions

Flashcard
•
University
6 questions
Teen Wolf

Flashcard
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade