Java Programming Tutorial & Training  /  Business Courses

Test Prep Plan - Take a practice test

Take this practice test to check your existing knowledge of the course material. We'll review your answers and create a Test Prep Plan for you based on your results.
How Test Prep Plans work
1
Answer 50 questions
Test your existing knowledge.
2
View your test results
Based on your results, we'll create a customized Test Prep Plan just for you!
3
Study smarter
Study more effectively: skip concepts you already know and focus on what you still need to learn.

Advanced Concepts in Java Chapter Exam

Exam Instructions:

Choose your answers to the questions and click 'Next' to see the next set of questions. You can skip questions if you would like and come back to them later with the yellow "Go To First Skipped Question" button. When you have completed the practice exam, a green submit button will appear. Click it to see your results. Good luck!

Page 1

Question 1 1. Which of these is an atomic operation?

Question 2 2. Which methods or fields provide a thread-safe lock in the following code?

Question 3 3. Which of these is a use case for 'volatile'?

Question 4 4. Why would you need locking in a multithreaded Java application?

Question 5 5. Which keyword would you use if you needed to add to the number of enemies in a multiuser game written in Java?

Page 2

Question 6 6. Examine the screen print below: Which of the following is a command line argument?

Question 7 7. When are command line arguments specified?

Question 8 8. Which of the following could be an argument for a Java program?

Question 9 9. Which tool lets you enter command line arguments?

Question 10 10. Which of the following code snippets correctly allows for and displays command line arguments?

Page 3

Question 11 11. The location of the Java compiler and Java run-time engine are located in which environment variable?

Question 12 12. Which command would change the JAVA_HOME variable to c:\desktop?

Question 13 13. Which of the following is an environment variable?

Question 14 14. This variable holds a list of user-created classes.

Question 15 15. Be careful! Environment variable names are case-sensitive in which operating system?

Page 4

Question 16 16. CLASSPATH contains a list of _____

Question 17 17. Which command resets the CLASSPATH to its default?

Question 18 18. The CLASSPATH variable is a(n) _____ variable

Question 19 19.

What tool is used to execute the following command:

java -classpath J:\Tools\java\JanesClasses

Question 20 20. Which of the following correctly sets the CLASSPATH to M:\Java\DeptClasses?

Advanced Concepts in Java Chapter Exam Instructions

Choose your answers to the questions and click 'Next' to see the next set of questions. You can skip questions if you would like and come back to them later with the yellow "Go To First Skipped Question" button. When you have completed the practice exam, a green submit button will appear. Click it to see your results. Good luck!

Support