java 4. Java allows for the use of generic typing to do away with all type check
ID: 3845478 • Letter: J
Question
java
4. Java allows for the use of generic typing to do away with all
type checking of parameters to methods. TRUE OR FALSE ?
5 How many interfaces can a class implement?
6.When a programmer writes a class definition to implement an interface, he/she must write the method body for at least one of the method headings specified in the interface TRUE OR FALSE?
7. Declaring a formal parameter's type as T is the same thing as declaring the parameter's type as Object. TRUE OR FALSE?
8. What is the access type for all methods in an interface. (spelling and case matter).
Explanation / Answer
4. Java allows for the use of generic typing to do away with all type checking of parameters to methods. TRUE OR FALSE ?
Answer: True
5 How many interfaces can a class implement?
Answer: one or more than one(65535).
6.When a programmer writes a class definition to implement an interface, he/she must write the method body for at least one of the method headings specified in the interface TRUE OR FALSE?
Answer: False(must write the method bodies for all of the method headings specified in the interface)
7. Declaring a formal parameter's type as T is the same thing as declaring the parameter's type as Object. TRUE OR FALSE?
Answer: False(T is a generic type. Meaning it can be substituted by any qualifying object at runtime. )
8. What is the access type for all methods in an interface. (spelling and case matter).
Answer: All methods in an interface are public, even if you leave out the public keyword in the method declaration.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.