subject

Consider the following Java program. Which one of the following is an interface?

import java. awt. event\.\*;
import javax. swing\.\*;
public class MouseWhisperer extends JFrame implements MouseListener {
MouseWhisperer() {
super("COME CLOSER");
setSize(300,100);
setDefaultCloseOperation(JFrame. EXIT_ON_CLOSE);
addMouseListener(this);
setVisible(true);
}
public void mouseClicked(MouseEvent e) { setTitle("OUCH"); }
public void mousePressed(MouseEvent e) { setTitle("LET GO"); }
public void mouseReleased(MouseEvent e) { setTitle("WHEW"); }
public void mouseEntered(MouseEvent e) { setTitle("I SEE YOU"); }
public void mouseExited(MouseEvent e) { setTitle("COME CLOSER"); }
public static void main(String[] args) { new MouseWhisperer(); }
}

Select one:

a) addMouseListener(this);
b) public class MouseWhisperer extends JFrame implements MouseListener {
c) public static void main(String[] args) { new MouseWhisperer(); }
d) public void mouseEntered(MouseEvent e) { setTitle("I SEE YOU"); }
e) setVisible(true);

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
You know the right answer?
Consider the following Java program. Which one of the following is an interface?

import...
Questions
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
English, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Social Studies, 18.09.2020 21:01
question
Biology, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
English, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
English, 18.09.2020 21:01
question
Social Studies, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
Mathematics, 18.09.2020 21:01
question
History, 18.09.2020 21:01
question
English, 18.09.2020 21:01
Questions on the website: 13722360