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
10 questions
Socrates: Life and Philosophy

Flashcard
•
12th Grade
11 questions
CE-LP2 Noções de Linguagens Procedurais

Flashcard
•
KG - University
13 questions
CSAwesome: 1.2 - Java Basics HW Review

Flashcard
•
11th - 12th Grade
10 questions
Java Programming Basics

Flashcard
•
9th - 12th Grade
11 questions
Computer Programming

Flashcard
•
University
12 questions
CE-LP1 Programação Orientadas a Objetos (POO)

Flashcard
•
KG - University
9 questions
User Interface

Flashcard
•
10th Grade
9 questions
Reading and Writing Files with Python Intro

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade