in Education by
What is use of wildcards? (a) It is used in cases when type being operated upon is not known (b) It is used to make code more readable (c) It is used to access members of super class (d) It is used for type argument of generic method This question was addressed to me in final exam. This intriguing question originated from Wildcards topic in portion Generics 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
Right answer is (a) It is used in cases when type being operated upon is not known Easy explanation: The wildcard can be used in a variety of situations: as the type of a parameter, field, or local variable; sometimes as a return type (though it is better programming practice to be more specific). The wildcard is never used as a type argument for a generic method invocation, a generic class instance creation, or a supertype.

Related questions

0 votes
    What is the use of try & catch? (a) It allows us to manually handle the exception (b) It allows ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What is the use of Observable class? (a) It is used to create global subclasses (b) It is used ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    What is the use of Flushable interface? (a) Flushes this stream by writing any buffered output to the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What kind of scoping does JavaScript use? (a) Literal (b) Lexical (c) Segmental (d) Sequential I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What does javascript use instead of == and !=? (a) It uses bitwise checking (b) It uses === ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which method to use while working with XML fragments, instead of XML()? (a) XMLInterface() (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How does PhantonJS use YSlow? (a) Queries (b) Statements (c) Command Line Prompt (d) Command Line ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which is the element that follows the use of img ? (a) area (b) usemap (c) map (d) ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Why do Web Developers use Firebug? (a) Track cookies (b) Track sessions (c) Both Track cookies ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Why do we need to use an onload event in the script tag after using the async attribute? (a) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...