
Java-Flashcard for Boyz
Flashcard
•
Computers
•
University
•
Practice Problem
•
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
Deviance
Flashcard
•
11th Grade
13 questions
Sympathetic Nervous System Flashcards
Flashcard
•
12th Grade
12 questions
E4 Final Exam: Biographies and Autobiographies (Smith)
Flashcard
•
12th Grade
15 questions
Daily Routines - ESL
Flashcard
•
Professional Development
9 questions
Tuesdays with Morrie
Flashcard
•
12th Grade
12 questions
Conditional Statements in C
Flashcard
•
University
18 questions
Consumer Skills Review
Flashcard
•
12th Grade
13 questions
Báo 1
Flashcard
•
KG
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University