Which Java tool is used to compile a source file named Hello.java into bytecode?
Java Basics
Question · Easy
After compiling a class named Main, which command runs the program on the JVM?
Introduction & Exam Overview
1Z0-811 Exam Overview & Certification Path
Study guide
What does the acronym JVM stand for in the Java platform?
Question · Medium
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which statement best describes the relationship between the JDK and the JRE?
Which of the following is a key feature commonly attributed to the Java language?
Java's automatic reclamation of memory occupied by objects that are no longer referenced is called what?
Setting Up the JDK 8 Environment & Recommended Study Plan
In a runnable Java application, what is the exact signature of the entry-point method that the JVM calls first?
A source file contains a single public class named Account. What must the source file be named?
Which statement correctly prints a line of text and then moves to a new line in the console?
Which of the following is a correctly written single-line comment in Java?
Chapter 1: Java Basics & Program Architecture
1.1 What Is Java & Core Platform Features
When you run 'java Greeter Alice 42', what is the value of args[1] inside the main method?
What is bytecode in the context of the Java platform?
Which of the following is a valid declaration and initialization of an int variable in Java?
Working With Java Data Types
Which list contains only Java primitive data types?
1.2 The Java Runtime Architecture & Memory Management
What is the result of attempting to compile and assign: final int MAX = 5; MAX = 10;?
Given 'int x = 5; double y = x;', what kind of conversion occurs?
Question · Hard
What is printed by: double d = 9.99; int i = (int) d; System.out.println(i);?
Which declaration correctly creates a String variable initialized with text?
1.3 Structure of a Java Program & The main Method
Which of the following is a legal Java variable identifier?
What is the default value of an uninitialized boolean instance variable (field) in a class?
Which String method converts the numeric String "123" stored in variable s into the int 123?
What does "Hello".length() return?
1.4 Compiling, Running, and Package Management
Which range of whole numbers can a single byte primitive hold in Java?
What is the result of: String a = "7"; int b = 3; System.out.println(a + b);?
Which literal correctly assigns the character 'A' to a char variable?
What is the result of the expression 17 % 5 in Java?
Using Operators And Decision Constructs
Chapter 2: Working with Data Types & Strings
2.1 The Eight Primitive Data Types & Literal Values
What is the result of the integer expression 7 / 2 in Java?
Given 'int a = 5; int b = a++;', what are the values of a and b afterward?
Given 'int x = 10; x += 5;', what is the value of x?
Which operator checks whether two int values are NOT equal?
2.2 Type Conversion, Casting, and Numeric Promotion
What does the expression (5 > 3) && (2 > 4) evaluate to?
In the expression (a != null) && (a.length() > 0), why is the && operator important here?
What is the value of the expression: int max = (8 > 5) ? 8 : 5;?
Considering operator precedence, what does 2 + 3 * 4 evaluate to?
2.3 The String Class, Immutability, and the String Constant Pool
Which control structure executes one block when a condition is true and a different block when it is false?
In a switch statement, what happens if a matching case has no break statement?
Which of these types is NOT a valid selector expression for a traditional switch statement on JDK 8?
Why should you compare two String objects for equal content with equals() rather than ==?
Loading more…