exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 20 discussion

Actual exam question from Oracle's 1z0-819
Question #: 20
Topic #: 1
[All 1z0-819 Questions]

Given:

and the commands:

What is the result on execution of these commands?

  • A. Test.class - > java.sql -> java.base
  • B. On execution, the jdeps command displays an error.
  • C. Test.class -> java.base -
    Test.class - > java.sql
  • D. Test.class -> java.base -

    Test.class - > java.sql -
    java.sql -> java.base
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
aruni_mishra
6 days, 21 hours ago
Tested (TestJdeps is class name): ------------------------------------------------ jdeps -summary TestJdeps.class TestJdeps.class -> java.base TestJdeps.class -> java.sql
upvoted 1 times
...
cathDev
2 months, 1 week ago
Selected Answer: C
C correct tested
upvoted 3 times
...
Bravo6633
3 months ago
Selected Answer: D
java.sql is a part of java.base
upvoted 1 times
...
d7bb0b2
5 months, 1 week ago
D are correct: The correct answer is D. The `jdeps` command is a tool for analyzing the dependencies of a Java class or JAR file. The `-summary` option shows a summary of the package dependencies. In this case, the `Test` class has a dependency on the `java.sql.Timestamp` class, which is part of the `java.sql` package. The `java.sql` package is part of the `java.base` module. Therefore, the output of the `jdeps -summary Test.class` command would be: ``` Test.class -> java.base Test.class -> java.sql java.sql -> java.base ``` This means that `Test.class` depends on both `java.base` and `java.sql`, and `java.sql` in turn depends on `java.base`.
upvoted 1 times
...
Ashan_Ozlov
7 months, 1 week ago
Selected Answer: C
q20.class -> java.base q20.class -> java.sql
upvoted 1 times
...
Omnisumem
10 months ago
Selected Answer: C
tested.
upvoted 2 times
...
Stavok
11 months ago
Selected Answer: D
The correct answer is D. Test.class -> java.base - Test.class - > java.sql - java.sql -> java.base. The jdeps command shows the package-level or class-level dependencies of Java class files. The output shows that the Test class depends on both the java.base and java.sql modules, and that the java.sql module depends on the java.base module.
upvoted 1 times
...
Stavok
11 months ago
The correct answer is D. Test.class -> java.base - Test.class - > java.sql - java.sql -> java.base. The jdeps command shows the package-level or class-level dependencies of Java class files. The output shows that the Test class depends on both the java.base and java.sql modules, and that the java.sql module depends on the java.base module.
upvoted 1 times
...
Ankit1010
1 year, 4 months ago
C is the right answer Test.class -> java.base Test.class - > java.sql
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago