Question
1.@Overridehas the effect of a. checking that the method following@Overridehas an identical method in the superclass b. checking that the spelling of the subclass method
1.@Overridehas the effect of
a.
checking that the method following@Overridehas an identical method in the superclass
b.
checking that the spelling of the subclass method identifier is correct
c.
checking that the identifier of the method that follow@Overrideis identical to an identifier in the subclass
d.
checking that the subclass method following@Overridehas the same parameter list as a method in the superclass
e.
forcing methods in the superclass to be overridden by methods in the subclass
1.In file IO,the term 'output' means that information is input into a file from a program
True
False
1.True or False: a lambda expression can only be used with a class that contains a single method
True
False
1.True or False:Mutable variables can potentially lead to deadlock
True
False
1.True or False:TheFileclass contains methods that allow the user to add or delete items stored inside a file that issaved on, for example,a hard drive or USB drive
True
False
1.Torefactora class, package, or project means to
a.
leave the original code untouched, but add new features
b.
improve the readability of the code
c.
rename identifiers in the code
d.
correct existing errors in the functionality of a program
e.
change the program in a way which does not affect its originalfunctionality
1.If a method is declared without an access modifier, then, assuming it is in a public class,its visibility is limited to
a.
the current class
b.
the current package
c.
the current project
d.
inherited subclasses
e.
none of the above
1.True or False:If you build an interface, you must declare each of its methodsabstract
True
False
1.Whileoneof the flowing is used in UML diagrams to signal a comment?
a.
boldface
b.
CAPITALIZE
c.
italics
d.
<< in guimettes>>
e.
underline
True or False:Everyouter superclass must have a no-arg constructor if its subclass(es) are to be instantiated correctly
True
False
QUESTION 30
Whichoneof the following doesnotuse a reference type in Java
a.
an array
b.
a class
c.
an interface
d.
a String
e.
none of the above
Which one of the following best describes the reason for implementing an interface?
a.
an interface forces the programmer who uses the interface to implement the interface's methods
b.
implementing classes of an interfaceare guaranteed to make the interface's methods available to clients, thus ensuring a standard set of features
c.
code execution time is reduced by forcing the user of the interface to override the abstract methods in the first available subclass
d.
it leads to code reuse by ensuring that the interface's methods are implemented
e.
it allows the user to create abstract hierarchy
Whichoneof the following does not describe an automatic process in Java, i.e. one which occurs without the programmer having to make any explicit conversion?
a.
automatic type conversion
b.
autoboxing
c.
implicit casting
d.
type inference
Whichoneof the following isNOTan advantage to using an inner class to handle mouse click events?
a.
it reduces the number of external, package-level classes that would otherwise be needed
b.
an inner class can be made private, thus limiting its use to just the outer class
c.
you do not need to override thehandle() method with the code to be executed on a click event
d.
code is easier to maintain,since the affectedNode(like a button)and its handler can all be located in the same class
e.
none of the above
Which one of the following terms is used to describe any JavaFXobject, whether graphical (i.e. it can be made visible on the screen) or not?
a.
Node
b.
Parent
c.
Control
d.
Icon
e.
ActionEvent
e.
none of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started