exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 38 discussion

Actual exam question from Microsoft's 98-388
Question #: 38
Topic #: 1
[All 98-388 Questions]

HOTSPOT -
You work on a team that develops e-commerce applications. A member of the team creates a class named DB that connects to a database. The class contains a method named query.
You need to initiate the DB class and invoke the query method.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html#invoke-java.lang.Object-java.lang.Object...-

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
aaron_123
Highly Voted 4 years, 9 months ago
should be new DB and db.query()
upvoted 12 times
...
OnsYedes
Highly Voted 4 years, 7 months ago
DB db=new DB(); db.query();
upvoted 10 times
...
CaesarFlorin
Most Recent 4 years, 4 months ago
DB db = new DB(); db.query();
upvoted 6 times
...
CaesarFlorin
4 years, 4 months ago
Why do u ppl from this site put so many wrong unswers for this questions? Stop teaching ppl wrong codes, u r not helping us!!
upvoted 6 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