
Java-Flashcard for Boyz

Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

17 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be the output of the following code?
System.out.println(10 / 3);
Back
3
2.
FLASHCARD QUESTION
Front
What is wrong with this variable declaration?
int 123num = 5;
Back
Variable names cannot start with a number
3.
FLASHCARD QUESTION
Front
What is the default value of an int variable in Java?
Back
0
4.
FLASHCARD QUESTION
Front
Find the Output:
public class Test {
static int count = 0;
Test() {
count++;
}
public static void main(String[] args) {
Test obj1 = new Test();
Test obj2 = new Test();
System.out.println(count);
}
}
Back
2
5.
FLASHCARD QUESTION
Front
Predict the Result:
int arr[] = {1, 2, 3, 4, 5};
System.out.println(arr[5]);
Back
ArrayIndexOutOfBoundsException
6.
FLASHCARD QUESTION
Front
What is the output of the following code?
String str = "Hello";
System.out.println(str.length());
Back
5
7.
FLASHCARD QUESTION
Front
What will be the result of the following code?
boolean flag = true;
if (flag) {
System.out.println("True");
} else {
System.out.println("False");
}
Back
True
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Arrays

Flashcard
•
University
16 questions
Python Basics Unit 3.1

Flashcard
•
12th Grade
15 questions
Basic Integration and the FTC

Flashcard
•
12th Grade
15 questions
Introduction to Java

Flashcard
•
University
14 questions
Halloween Java

Flashcard
•
12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
10 questions
Java Classes and Objects

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University