Which method names follow the JavaBeans standard? : Questions « Object Oriented « SCJP
Java Source And Data Type
6.16.7.Which method names follow the JavaBeans standard?
"X extends Y" is correct if and only if X is a class and Y is an interface(True/False)
Answer: interface extends
"X extends Y" is correct if and only if X is an interface and Y is a class(True/False)
Answer: class and interface
"X extends Y" is correct if X and Y are either both classes or both interfaces(True/False)
Answer: interface hierarchy
Which method names follow the JavaBeans standard?
Answer: JavaBeas naming convention
Which, inserted independently at 'insert code here', will compile?
Answer: method overloading and var-arg
What is the result(enum value)?
Answer: enum value
What is the result when trying to compiling the following code(abstract and interface)?
Answer: abstract and interface
What is the result when trying to compiling the following code(variable name)?
Answer: variable name
What is the result when trying to compiling the following code(array declaration)?
Answer: array declaration
What is the result when trying to compiling the following code(enum definition spot)?
Answer: enum definition spot
What is the result(enum and for loop)?
Answer: enum and for loop
What is the result(static method)?
Answer: static method
Is the following code compilable(subclass and override)?
Answer: subclass and override
Is the following code compilable(subclass and overloading)
Answer: subclass and overloading
Is the following code compilable(override and exception throws statements)?
Answer: override and exception throws statements
What is the output(compare two enum values)?
Answer: compare two enum values
What is the output of the following program(class inheritance and shadowing)?
Answer: class inheritance and shadowing
What is the output of the following program(inner class)?
Answer: using inner class
What is ture for a fully encapsulated class?
Answer: encapsulated class
What is an example of polymorphism?
Which modifiers may not be used with a top-level class?
Answer: Which modifiers may not be used with a top-level class
The compiler supplies a default constructor if no constructors are provided for a class(True/False).
Answer: default constructor
All constructors have a void return type(True/False).
Answer: return type for constructors
A constructor may throw an exception(True/False).
Answer: constructor and exception
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.