QUESTION 70 You use a MediaPlayer object to obtain the source of the media. True
ID: 3582440 • Letter: Q
Question
QUESTION 70
You use a MediaPlayer object to obtain the source of the media.
True
False
1 points
QUESTION 71
You cannot have a main() method in a JavaFX application.
True
False
1 points
QUESTION 72
Every JavaFX application must extend javafx.application.Application.
True
False
1 points
QUESTION 73
Given: public class MyList extends ArrayList {...}, you(r) _________.
functionality known at compile time is limited to that of Object
know the concrete type used at runtime must be numeric
know the actual type of the parameter at compile time
require a minimum concrete type, other than Object, to be used
2 points
QUESTION 74
An interface can contain only abstract methods and variables.
True
False
1 points
QUESTION 75
An event source object and a listener object can be the same.
True
False
1 points
QUESTION 76
Lines 12-13 only
Line 15 only
Lines 12-13 and line 15
None - no output from these lines of code
2 points
QUESTION 77
You cannot inherit from one exception class to another.
True
False
1 points
QUESTION 78
A JavaFX application begins with the start() method, which is called after the Java Virtual Machine (JVM) calls the launch() method.
True
False
1 points
QUESTION 79
Yes, this works, although it is less specific than it could be
Yes, and you cannot be more specific
No, the Exception class is only used for inheritance by subclasses, not directly
No. You must use a specific exception class appropriate to this error
a.functionality known at compile time is limited to that of Object
b.know the concrete type used at runtime must be numeric
c.know the actual type of the parameter at compile time
d.require a minimum concrete type, other than Object, to be used
Explanation / Answer
QUESTION 70
You use a MediaPlayer object to obtain the source of the media.
Answer :TRUE
Media Player class provides the source code for creating applications for media. It contains combination of Media and MediaView to track media streaming like audio, video etc.
Eg:
Public Class WindowsMediaPlayer extends javafx.scene.media.MediaPlayer {
Void play() {}
Void pause() {}
Void stop() {}
Void seek() {}
}
QUESTION 71
You cannot have a main() method in a JavaFX application.
Answer : FALSE
The above question could be “need not” instead of “Cannot”, because JavaFX application can contain main() method even though the application contain start() method to start the application. The reason behind this is, we can run Jar file that are created without FX Launcher. Ofcourse java swing applications with Java FX needs main method to implement.
Eg:
Public class Home extends Application {
Public void start(Stage s) {}
Public void stop() {}
Public static void main(String []args) { }
}
QUESTION 72
Every JavaFX application must extend javafx.application.Application.
Answer: TRUE
Yes it is needed to extend Application class for every Java FX program because to invoke the application methods like start() and stop() to be overridden. Java FX creates Application thread to work on Scene and Stage objects for input processing
QUESTION 74
An interface can contain only abstract methods and variables
Answer : FALSE
Interface contain abstract methods, final variables and also inner interfaces.
interface GreetDemo {
static final String greet="Good";
public abstract hello(String msg);
interface Morning {
static final String session="Morning";
}
}
QUESTION 75
An event source object and a listener object can be the same.
Answer: FALSE
Event Source and Listener object are different in meaning, but finally mean to do common together job. Event Source Object is the GUI component on which the event to be raised and Listener Object is the interface which works on that Event Source object.
Eg:
Class Home extends Frame implements ActionListener { Button b; // Event Source
Public Home() {
B = new Button(“Click”);
b.addActionListener(this); // Listener Object
}
public void actionPerformed(ActionEvent ae) {
}
}
QUESTION 77
You cannot inherit from one exception class to another.
Answer : FALSE
We can inherit one exception class to another, Generally all exceptions are inherited from Exception Class. And all unchecked exceptions inherited from RuntimeException. Also a User Defined Exception class can also be inherited from Exception class.
Eg:
Class MadhuException extends Exception {
Public MadhuException(String msg) {
Super(msg);
}
}
QUESTION 78
A JavaFX application begins with the start() method, which is called after the Java Virtual Machine (JVM) calls the launch() method.
Answer : TRUE
When ever application is launched, Java JVM at runtime calls start() method to create a event Stage in the FX application, so no need to call the object to instantiate for Application since start() is the init() like method to start proceedings for running FX applications like a thread.
Eg:
Public class Home extends Application {
Public void start(Stage s) {}
Public void stop() {}
Public static void main(String []args) { }
}
QUESTION 76 some data missing(image not displayed)
QUESTION 79: some data missing(image not displayed)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.