ODNYX.
Tutorials
Java
CSS
Database
DevOps
Spring
Design Patterns
References
Subscribe
Java
CSS
Database
DevOps
Spring
Design Patterns
Introduction to Java — Quick Check
1. What must match the filename of a Java source file?
The name of the main method
The name of the public class
The package name
The name of the first variable declared
2. What does System.out.println() do?
Reads a line of input from the user
Prints a line of text to the console
Declares a new variable
Defines a new class
Check answers
❮ Home
Next: Java Syntax and Variables ❯