Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Java Basics and Syntax practice sets

1Z0-811 Java Basics and Syntax • Complete Question Bank

1Z0-811 Java Basics and Syntax — All Questions With Answers

Complete 1Z0-811 Java Basics and Syntax question bank — all 0 questions with answers and detailed explanations.

102
Questions
Free
No signup
Certifications/1Z0-811/Practice Test/Java Basics and Syntax/All Questions
Question 1easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes the following code: int x = 5; System.out.println(x++); What is the output?

Question 2mediummultiple choice
Read the full Java Basics and Syntax explanation →

A team decides to use a single Java source file for a small application. Which statement is true about the file structure?

Question 3hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given the code: String s1 = "Java"; String s2 = new String("Java"); if (s1 == s2) { System.out.print("Equal"); } else { System.out.print("Not Equal"); } What is the output?

Question 4easymultiple choice
Read the full Java Basics and Syntax explanation →

Which primitive data type should be used to store a single character?

Question 5mediummultiple choice
Read the full Java Basics and Syntax explanation →

A method is declared as: public static void main(String[] args) { }. Which statement is true?

Question 6hardmultiple choice
Read the full Java Basics and Syntax explanation →

Which code snippet correctly creates a two-dimensional array with 3 rows and 4 columns?

Question 7easymultiple choice
Read the full Java Basics and Syntax explanation →

What is the value of the expression (10 > 5) && (3 < 2)?

Question 8mediummultiple choice
Read the full Java Basics and Syntax explanation →

Which loop construct guarantees that the body executes at least once?

Question 9hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given the code: int[] arr = {1,2,3}; for(int x : arr) { if(x==2) continue; System.out.print(x); } What is the output?

Question 10mediummultiple choice
Read the full Java Basics and Syntax explanation →

Which access modifier makes a member visible only within its own class?

Question 11easymultiple choice
Read the full Java Basics and Syntax explanation →

What is the result of the expression 10 % 3?

Question 12mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO are valid identifiers in Java? (Choose two.)

Question 13hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE are valid ways to declare and initialize an integer variable in Java? (Choose three.)

Question 14easymulti select
Read the full Java Basics and Syntax explanation →

Which TWO keywords are used for decision-making in Java? (Choose two.)

Question 15hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE statements about the main method are correct? (Choose three.)

Question 16mediummultiple choice
Read the full Java Basics and Syntax explanation →

What is the output of this program?

Exhibit

Refer to the exhibit.
public class Test {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a + b);
        System.out.println("Sum: " + a + b);
    }
}
Question 17hardmultiple choice
Read the full Java Basics and Syntax explanation →

What is the value printed?

Exhibit

Refer to the exhibit.
public class LoopTest {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 0; i < 5; i++) {
            if (i % 2 == 0) {
                continue;
            }
            count++;
        }
        System.out.println(count);
    }
}
Question 18hardmultiple choice
Read the full Java Basics and Syntax explanation →

You are developing a Java application for a library management system. The system must track the number of books in each genre. You need to store genre names (String) and their counts (int). The data will be accessed frequently and modified rarely. Which Java data structure should you use to store this mapping efficiently, while ensuring that genre names are unique?

Question 19mediummultiple choice
Read the full Java Basics and Syntax explanation →

You are writing a program that processes a list of transactions. Each transaction has a timestamp (long), amount (double), and type (String). The program needs to iterate through the transactions in the order they were added. Which collection should you use to maintain insertion order and allow fast iteration?

Question 20mediumdrag order
Read the full Java Basics and Syntax explanation →

Arrange the steps to declare and initialize a one-dimensional array in Java in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 21mediumdrag order
Read the full Java Basics and Syntax explanation →

Arrange the steps to use the Scanner class to read user input in Java in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 22mediummatching
Read the full Java Basics and Syntax explanation →

Match each access modifier to its visibility level.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Accessible from anywhere

Accessible within same package and subclasses

Accessible only within same package

Accessible only within same class

Question 23mediummatching
Read the full Java Basics and Syntax explanation →

Match each Java collection interface to its characteristics.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Ordered collection allowing duplicates

Collection with no duplicates

Collection for holding elements prior to processing

Key-value pairs, keys unique

Double-ended queue supporting insertion/removal at both ends

Question 24easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes code to calculate the average of two integers: int a = 5; int b = 10; int avg = a / b;. Which change ensures the average is correctly calculated as a double?

Question 25mediummultiple choice
Read the full Java Basics and Syntax explanation →

A class defines a static variable initialized at declaration: static int count = 10;. A static method attempts to modify it: count = 20;. Which statement is true?

Question 26hardmultiple choice
Read the full Java Basics and Syntax explanation →

A developer uses a switch statement with a String variable. Which is true about this usage?

Question 27easymultiple choice
Read the full Java Basics and Syntax explanation →

Which loop construct guarantees that the loop body executes at least once?

Question 28mediummultiple choice
Read the full Java Basics and Syntax explanation →

A method receives an int parameter and modifies its value inside the method. Does this change affect the caller's argument?

Question 29hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given int[] arr = {1,2,3}; which correctly creates a new array with length 5 and copies the contents of arr?

Question 30easymultiple choice
Read the full Java Basics and Syntax explanation →

A class defines two methods with the same name but different parameter lists. This is known as:

Question 31mediummultiple choice
Read the full Java Basics and Syntax explanation →

Which access modifier allows members to be accessed only by classes in the same package?

Question 32hardmultiple choice
Read the full Java Basics and Syntax explanation →

A subclass overrides a method from its superclass. Which annotation should be used to indicate the overriding intention?

Question 33easymulti select
Read the full Java Basics and Syntax explanation →

Which TWO are valid Java identifiers? (Choose two.)

Question 34mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO statements about constructors are true? (Choose two.)

Question 35hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE are primitive data types in Java? (Choose three.)

Question 36easymultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the output?

Exhibit

public class Test {
    public void print(int i) { System.out.println("int"); }
    public void print(double d) { System.out.println("double"); }
    public static void main(String[] args) {
        Test t = new Test();
        t.print(10);
    }
}
Question 37mediummultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the result of attempting to compile and run the code?

Exhibit

class A {
    private int x = 5;
}
class B extends A {
    public void print() {
        System.out.println(x);
    }
}
Question 38hardmultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the output?

Exhibit

public class Test {
    public void print(String s) { System.out.println("String"); }
    public void print(Object o) { System.out.println("Object"); }
    public static void main(String[] args) {
        Test t = new Test();
        t.print(null);
    }
}
Question 39easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes: int x; System.out.println(x); What is the result?

Question 40easymultiple choice
Read the full Java Basics and Syntax explanation →

Given: String s = "Java"; s.concat(" Rocks"); System.out.println(s); What prints?

Question 41easymultiple choice
Read the full Java Basics and Syntax explanation →

What is the result of: int[] arr = new int[5]; System.out.println(arr[5]);

Question 42mediummultiple choice
Read the full Java Basics and Syntax explanation →

Given: int day = 3; switch(day) { case 1: System.out.print("A"); case 2: System.out.print("B"); case 3: System.out.print("C"); case 4: System.out.print("D"); } What prints?

Question 43mediummultiple choice
Read the full Java Basics and Syntax explanation →

Given methods: void print(Integer i) { System.out.println("Integer"); } void print(int i) { System.out.println("int"); } What is output of print(10);?

Question 44mediummultiple choice
Read the full Java Basics and Syntax explanation →

Which assignment requires an explicit cast to compile?

Question 45hardmultiple choice
Read the full Java Basics and Syntax explanation →

Consider: for(int i=0;i<10;i++) { int x = i; } System.out.println(x); What is the result?

Question 46hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given method: static void change(String s) { s = "new"; } What is output of: String name = "original"; change(name); System.out.println(name);

Question 47hardmultiple choice
Read the full Java Basics and Syntax explanation →

What is the result of: Integer a = null; int b = (a != null) ? a : 0; System.out.println(b);

Question 48easymulti select
Read the full Java Basics and Syntax explanation →

Which TWO of the following are valid Java identifiers?

Question 49mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO of the following are legal ways to declare and initialize an array?

Question 50hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE of the following are primitive data types in Java?

Question 51easymultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the likely cause of this error?

Exhibit

javac Test.java
Test.java:3: error: variable x might not have been initialized
        System.out.println(x);
                        ^
Question 52mediummultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What happens when you compile this code?

Exhibit

public class MyClass {
    public static void main(String[] args) {
        int num = 10;
        if(num = 5) {
            System.out.println("Five");
        }
    }
}
Question 53hardmultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the output?

Exhibit

public class Test {
    public static void main(String[] args) {
        int a = 5;
        int b = a++ + ++a;
        System.out.println(b);
    }
}
Question 54easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer needs to declare a constant for the value of PI (3.14159) in a class. Which declaration follows Java best practices?

Question 55easymultiple choice
Read the full NAT/PAT explanation →

A method is expected to receive an integer and return its square. Which method signature is correct?

Question 56hardmultiple choice
Read the full Java Basics and Syntax explanation →

A class has a static variable counter initialized to 0. Two threads increment counter 1000 times each using counter++. What is a possible final value of counter?

Question 57easymultiple choice
Read the full Java Basics and Syntax explanation →

Which is the correct way to declare an array of integers in Java?

Question 58mediummultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes: if (x = 5) { System.out.println("x is 5"); } What is the result?

Question 59mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO statements are true about the main method?

Question 60hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE of the following are primitive data types in Java?

Question 61easymulti select
Read the full Java Basics and Syntax explanation →

Which TWO are valid ways to create a String object?

Question 62easymultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the output?

Exhibit

public class Test {
    public static void main(String[] args) {
        int x = 10;
        int y = x++; 
        System.out.println(y);
    }
}
Question 63mediummultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the most likely cause?

Exhibit

$ java Test
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5
        at Test.main(Test.java:3)
Question 64hardmultiple choice
Read the full Java Basics and Syntax explanation →

Refer to the exhibit. What is the output when running the main method?

Exhibit

public class InitOrder {
    static { System.out.print("A "); }
    { System.out.print("B "); }
    public InitOrder() { System.out.print("C "); }
    public static void main(String[] args) {
        new InitOrder();
    }
}
Question 65hardmultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes the following code to compare two strings: String s1 = "Java"; String s2 = new String("Java");

if (s1 == s2) { System.out.println("Equal"); } else { System.out.println("Not equal"); }

What is the output?

Question 66easymultiple choice
Read the full Java Basics and Syntax explanation →

A package named com.example.util is declared in a file. Where should the file be placed in the directory structure?

Question 67hardmultiple choice
Read the full Java Basics and Syntax explanation →

A developer uses the following array initialization: int[] nums = new int[]{1, 2, 3}; Which of the following is true?

Question 68mediummultiple choice
Read the full Java Basics and Syntax explanation →

A method is declared as:

public void setAge(int age) { this.age = age; }

Which statement is correct about this code assuming the class has an instance variable age?

Question 69easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes the following code: int x = 5; int y = x++; What are the values of x and y after execution?

Question 70mediummultiple choice
Read the full Java Basics and Syntax explanation →

A company requires a method that accepts an integer and returns true if the integer is even, otherwise false. Which implementation best follows Java conventions?

Question 71hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given the loop: for (int i=0; i<5; i++) { if (i==2) continue; System.out.print(i); } What is the output?

Question 72easymultiple choice
Read the full Java Basics and Syntax explanation →

Which data type should be used to store a single character like 'A'?

Question 73mediummultiple choice
Read the full Java Basics and Syntax explanation →

What is the result of the following code? String s1 = "Hello"; String s2 = " World"; String s3 = s1 + s2; System.out.println(s3);

Question 74hardmultiple choice
Read the full Java Basics and Syntax explanation →

Given: int[] arr = {10,20,30}; System.out.println(arr[3]); What is the result?

Question 75easymultiple choice
Read the full Java Basics and Syntax explanation →

Which method overloading is valid?

Question 76mediummultiple choice
Read the full Java Basics and Syntax explanation →

What is the scope of a variable declared inside a for loop?

Question 77hardmultiple choice
Read the full Java Basics and Syntax explanation →

Which statement about try-catch is true?

Question 78mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO keywords are used to control access to class members? (Choose two.)

Question 79easymulti select
Read the full Java Basics and Syntax explanation →

Which THREE are primitive data types in Java? (Choose three.)

Question 80hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE are valid Java identifiers? (Choose three.)

Question 81mediummultiple choice
Read the full Java Basics and Syntax explanation →

The code does not compile. What is the error?

Exhibit

Refer to the exhibit.

public class Test {
    public static void main(String[] args) {
        int x = 10;
        if (x = 5) {
            System.out.println("Equal");
        }
    }
}
Question 82hardmultiple choice
Read the full Java Basics and Syntax explanation →

What likely caused this compilation error?

Exhibit

Refer to the exhibit.

javac Test.java
Test.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Question 83hardmultiple choice
Read the full NAT/PAT explanation →

A developer is working on a Java application that processes user input. The application reads an integer from the command line using args[0], converts it to an int, and uses it in a loop. When testing, the application throws a NumberFormatException when the user provides an alphabetic string. The developer needs to handle this exception gracefully by prompting the user to enter a valid number and retrying. However, the developer must avoid infinite loops. The current code uses a while loop with a flag. Which approach ensures the code handles the exception, provides feedback, and terminates if the user enters 'quit'? The environment is a standard Java SE 11 application. The developer wants a robust solution without using external libraries.

Question 84easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer declares an integer variable inside a method but does not assign a value. What is the result of attempting to print the variable?

Question 85mediummultiple choice
Read the full Java Basics and Syntax explanation →

Given two String objects s1 = "Hello" and s2 = "Hello", what does the expression (s1 == s2) return?

Question 86hardmultiple choice
Read the full Java Basics and Syntax explanation →

A developer writes: int x = 5; int y = x++ + ++x; What is the value of y after execution?

Question 87easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer wants to iterate over an array of integers named 'numbers'. Which loop declaration will correctly access each element?

Question 88mediummultiple choice
Read the full Java Basics and Syntax explanation →

A class has two methods: void setValue(int a) and void setValue(double a). Which call will result in a compilation error?

Question 89hardmultiple choice
Read the full Java Basics and Syntax explanation →

A parent class has a static method display() and an instance method show(). A child class attempts to override both. What is the outcome?

Question 90mediummulti select
Read the full Java Basics and Syntax explanation →

Which TWO are valid ways to declare and initialize a two-dimensional int array in Java?

Question 91easymulti select
Read the full Java Basics and Syntax explanation →

Which THREE are valid Java identifiers?

Question 92hardmulti select
Read the full Java Basics and Syntax explanation →

Which THREE statements about the final keyword in Java are true?

Question 93hardmultiple choice
Read the full Java Basics and Syntax explanation →

A financial trading application processes high-volume transactions. The system uses a multithreaded architecture where multiple threads update a shared Account object's balance field. Recently, intermittently incorrect balance calculations have been reported. Developers suspect a race condition on the balance field. The Account class is defined as follows:

public class Account {
    private double balance = 0.0;
    public void deposit(double amount) { balance += amount; }
    public void withdraw(double amount) { balance -= amount; }
    public double getBalance() { return balance; }
}

Threads are created using ExecutorService with a fixed thread pool. The issue occurs only under heavy load. Which course of action should the development team take to resolve the issue while maintaining performance?

Question 94easymultiple choice
Read the full Java Basics and Syntax explanation →

A junior developer wrote the following code to calculate the sum of an array:

int[] numbers = {1, 2, 3, 4, 5};

int sum = 0;
for (int i = 1; i <= numbers.length; i++) {

sum += numbers[i];

}

System.out.println("Sum: " + sum);

The developer expects the output to be 15, but the program throws an exception. What is the root cause and the correct fix?

Question 95mediummultiple choice
Read the full Java Basics and Syntax explanation →

A team is developing a library management system. They have a base class 'Item' with a method 'getTitle()' that returns the title. They also have a subclass 'Book' that overrides 'getTitle()'. In some places, they have a method that accepts an Item reference but actually receives a Book object. They want to call a method specific to Book, such as 'getISBN()', that is not in Item. They attempt to cast the parameter: ((Book) item).getISBN(). However, occasionally the program crashes with ClassCastException. What is the best practice to avoid this exception?

Question 96mediummultiple choice
Read the full Java Basics and Syntax explanation →

A web application uses a HashMap to cache user session data. The keys are String objects representing session IDs, and values are Session objects. After some time, the cache memory usage grows excessively, causing OutOfMemoryError. The cache is never cleared. The team decides to implement a cache eviction policy. Which approach is best suited for this scenario in terms of Java standard library?

Question 97hardmultiple choice
Read the full Java Basics and Syntax explanation →

A mobile app backend uses Java streams to process user data. The code snippet filters users who are active and older than 18, then collects them into a list:

List<User> result = users.stream() .filter(u -> u.isActive()) .filter(u -> u.getAge() > 18) .collect(Collectors.toList());

Performance metrics show that this stream operation is slow when the user list has millions of entries. The team wants to improve performance without changing the business logic. Which change would most likely improve performance?

Question 98easymultiple choice
Read the full Java Basics and Syntax explanation →

A developer is writing a program to find the maximum value in an array of integers. The code is:

int[] nums = {10, 20, 5, 30, 15};

int max = 0;
for (int i = 0; i < nums.length; i++) {
    if (nums[i] > max) {

max = nums[i];

}
}

System.out.println(max);

The output is 30, which is correct for this array. However, the developer is concerned that if all numbers are negative, the output would be 0 instead of the highest negative number. Which modification ensures the algorithm works correctly for all integer arrays?

Question 99hardmultiple choice
Read the full Java Basics and Syntax explanation →

You are tasked with debugging a Java application that processes temperature sensor readings. The application reads an array of double values representing temperatures in Celsius, and should output the number of readings that exceed a threshold of 30.0°C. The current implementation is:

public class TemperatureAnalyzer {
    public static void main(String[] args) {

double[] readings = {25.5, 32.1, 30.0, 28.9, 35.7};

int count = 0;
        for (int i = 0; i < readings.length; i++) {
            if (readings[i] > 30.0) {

count++;

}
        }

System.out.println("Count: " + count);

}
}

However, the output is "Count: 3" instead of the expected 2 (since 30.0 is not above the threshold). The developer believes the issue is that the condition should be '>=' to include 30.0, but the specification says strictly above 30.0. After further investigation, you discover that the problem is due to floating-point imprecision when comparing with the literal 30.0. Which of the following changes would correctly fix the comparison to reliably count readings strictly greater than 30.0, considering floating-point representation?

Question 100easymulti select
Read the full Java Basics and Syntax explanation →

Which TWO of the following are valid Java identifiers? (Choose two.)

Question 101mediummultiple choice
Read the full Java Basics and Syntax explanation →

What is the result of compiling and running this code?

Exhibit

Refer to the exhibit.
int x = 10;
double y = 5.5;
int result = x + y;
Question 102hardmultiple choice
Read the full Java Basics and Syntax explanation →

A developer is building a Java application for a bank that processes account transactions. The application reads transaction amounts from a CSV file provided by a third party. The amounts are in string format, e.g., '1,234.56' or '$5,000.00'. The developer uses Integer.parseInt() to convert these strings to integers for processing. However, many transactions fail with NumberFormatException. The developer adds a try-catch block to catch the exception and log the error. But still, the application fails to process valid transactions because the parsing does not handle the formatting. The development team is considering several approaches to fix this issue. The goal is to parse the string into an integer representing the whole dollar amount (ignoring cents and formatting). Which course of action should the developer take?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

1Z0-811 Practice Test 1 — 10 Questions→1Z0-811 Practice Test 2 — 10 Questions→1Z0-811 Practice Test 3 — 10 Questions→1Z0-811 Practice Test 4 — 10 Questions→1Z0-811 Practice Test 5 — 10 Questions→1Z0-811 Practice Exam 1 — 20 Questions→1Z0-811 Practice Exam 2 — 20 Questions→1Z0-811 Practice Exam 3 — 20 Questions→1Z0-811 Practice Exam 4 — 20 Questions→Free 1Z0-811 Practice Test 1 — 30 Questions→Free 1Z0-811 Practice Test 2 — 30 Questions→Free 1Z0-811 Practice Test 3 — 30 Questions→1Z0-811 Practice Questions 1 — 50 Questions→1Z0-811 Practice Questions 2 — 50 Questions→1Z0-811 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

What is JavaJava Basics and SyntaxPrimitives, Strings and OperatorsControl Flow and LoopsArrays and MethodsObject-Oriented ProgrammingException Handling and Development Tools

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Java Basics and Syntax setsAll Java Basics and Syntax questions1Z0-811 Practice Hub