in Education by
How method can be invoked on unknown object? (a) obj.getClass().getDeclaredMethod() (b) obj.getClass().getDeclaredField() (c) obj.getClass().getMethod() (d) obj.getClass().getObject() This question was posed to me in exam. Query is from Reflection API topic in division Session Management, JSP & API of Java Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct answer is (c) obj.getClass().getMethod() For explanation: obj.getClass().getMethod is used to invoke a method on unknown object obj.

Related questions

0 votes
0 votes
    Which is the method invoked to begin a path? (a) begin() (b) path() (c) createPath() (d ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which function among the following lets to register a function to be invoked once? (a) setTimeout() (b ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which will be invoked to create a new worker? (a) Function (b) Destructor (c) Constructor (d) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    How private method can be called using reflection? (a) getDeclaredFields (b) getDeclaredMethods (c) getMethods ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which Window object method is used to display a message in a dialog box? (a) alert() (b) prompt( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    Which object can be used to create your own blobs? (a) Creator (b) BlobCreator (c) BlobBuilder (d ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which of these method of Locale class can be used to obtain country of operation? (a) getCountry() ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...