Free Oracle 1Z0-819 Exam Questions (page: 7)

Given:



Which would cause s to be AQCD?

  1. s.replace(s.indexOf("A"), s.indexOf("C"), "Q");
  2. s.replace(s.indexOf("B"), s.indexOf("C"), "Q");
  3. s.replace(s.indexOf("B"), s.indexOf("B"), "Q");
  4. s.replace(s.indexOf("A"), s.indexOf("B"), "Q");

Answer(s): B



Given:



Which two lines cause compilation errors? (Choose two.)

  1. line 12
  2. line 6
  3. line 9
  4. line 8
  5. line 7

Answer(s): B,E



Which describes a characteristic of setting up the Java development environment?

  1. Setting up the Java development environment requires that you also install the JRE.
  2. The Java development environment is set up for all operating systems by default.
  3. You set up the Java development environment for a specific operating system when you install the JDK.
  4. Setting up the Java development environment occurs when you install an IDE before the JDK.

Answer(s): D


Reference:

https://docs.oracle.com/javame/8.1/sdk-dev-guide/install.htm



Given:

What is the result?

  1. 42
  2. The compilation fails due to an error in line 4.
  3. 17
  4. The compilation fails due to an error in line 3.
  5. The compilation fails due to an error in line 2.
  6. The compilation fails due to an error in line 1.
  7. The compilation fails due to an error in line 5.

Answer(s): A



Viewing page 7 of 66



Post your Comments and Discuss Oracle 1Z0-819 exam prep with other Community members:

1Z0-819 Exam Discussions & Posts