Java Methods

Flashcard
•
Computers
•
12th Grade
•
Hard
Quizizz 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
12 - Automation

Flashcard
•
University
10 questions
Java Basics 1

Flashcard
•
University
9 questions
عناوين العمليات بلغة جافا

Flashcard
•
10th Grade - University
10 questions
Static Methods in Java

Flashcard
•
12th Grade
10 questions
Unit 2 Economics

Flashcard
•
12th Grade
7 questions
Security Risks & Precautions

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

Flashcard
•
11th Grade
10 questions
CT-3 (UNIT-3)- Knowlegde Representation

Flashcard
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University