
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
50 questions
HYHW drains and vents

Flashcard
•
12th Grade
49 questions
Robotics 2 Certification Review

Flashcard
•
12th Grade
50 questions
Python Module 1 Flashcard

Flashcard
•
12th Grade
55 questions
hahahaahahahhahaha

Flashcard
•
KG
50 questions
Types of Programming Languages - Flashcard

Flashcard
•
University
51 questions
SYO 701 WEB APPLICATION SECURITY Module FC

Flashcard
•
University
52 questions
Programming II - Python Basics

Flashcard
•
University
50 questions
CS Final Exam--Java

Flashcard
•
11th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University