Sample Exam Questions
Sample Exam Questions
1h 58m

In this course, we will learn the concepts of Java EE 7 with a focus on Java Basics.

Learning Objectives

  • What Java classes, Executable Java, Access Modifiers are and how they work

Intended Audience

  • Anyone looking to get Oracle Java Certification
  • Those who want to improve Java 7 EE knowledge
  • Java developers


  • Have at least 2 years of Java development experience 

Hello there. In this video, we will examine our questions, and we'll examine these question answers in our next video. So, let's start. What are the valid components of a java source file?

Choose all that apply. A, package statement. B, import statements. C, methods. D, variables. E, Java compiler. F, Java runtime environment. The following numbered list of Java class components is not in any particular order. Select the correct order of their occurrence in a Java class. Choose all that apply. One, components. Two, import statement. Three, package statement. Four, methods. Five, class declaration. Six, variables. Which of the following examples define the correct Java class structure?

Given the following contents of the Java source code file,, select the correct options. Given the following definition of the class, EjavaGuru. Which of the following options when inserted at //INSERT CODE HERE, will print out EJavaGuru? Select the correct options. A class Course is defined in a package com.ejavaguru. Given that the physical location of the corresponding class file is /mycode/com/ejavaguru/Course.class and the execution takes place within the mycode directory, which of the following lines of code when inserted at // INSERT CODE HERE will import the Course class into the class MyCourse? Examine the following code. Which of the following statements will be true if the variable course name is defined as a private variable? Given the following definition of the class Course, what's the output of the following code? Given the following code, select the correct options. So, that's it. Hope to see you in our next video. Have a nice day.


About the Author
Learning Paths

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics