
Java syntax

Flashcard
•
Computers
•
University
•
Easy
Prof Yetty
Used 7+ times
FREE Resource
Student preview

59 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the correct file extension for a Java program? Options: .java, .js, .py, .txt
Back
.java
Answer explanation
2.
FLASHCARD QUESTION
Front
Which keyword is used to declare a variable? Options: variable, var, int, let
Back
int
Answer explanation
3.
FLASHCARD QUESTION
Front
What does the 'public' keyword signify in Java?
Back
It is accessible to all
Answer explanation
4.
FLASHCARD QUESTION
Front
How do you print text to the console in Java?
Back
System.out.println()
Answer explanation
5.
FLASHCARD QUESTION
Front
What happens if a local int variable is used without initialization?
Back
It is initialized to 0.
Answer explanation
6.
FLASHCARD QUESTION
Front
What symbol is used to end a Java statement?
Back
;
Answer explanation
7.
FLASHCARD QUESTION
Front
What is the correct syntax for a single-line comment?
Back
//
Answer explanation
Create a free account and access millions of resources
Similar Resources on Wayground
48 questions
ICS2606: Computer Programming II - Exceptions and Error Handling

Flashcard
•
University
42 questions
Final F2024 Review

Flashcard
•
University
48 questions
Adv Video Game Programming Fall 24 Exam

Flashcard
•
12th Grade
51 questions
2R231 Block 2 Review

Flashcard
•
Professional Development
51 questions
Programming Terminology Flashcards

Flashcard
•
KG
50 questions
CS2 Q50 Python Group 1

Flashcard
•
12th Grade - University
49 questions
CS172 Final Exam York College

Flashcard
•
KG - University
48 questions
Understanding Objects in Software

Flashcard
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade