Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with java homework. 1. What is the name for a method that responds to events? A. Call by Parameter B. Call by Object

Need help with java homework.

1. What is the name for a method that responds to events?

A. Call by Parameter

B. Call by Object

C. Call by Value

D. All of the above

2. What is the name for a method that responds to events?

A. A container method

B. A listener method

C. An application method

D. A snoop method

3. The following is a definition of an abstract class Book using Java.

abstract class Book {

String title;

abstract void setTitle(String s);

String getTitle() {

return title;

}

}

What occurs when the following line of code is compiled?

Book novel = new Book();

A. A new Book is instantiated

B. A compiler warning

C. A compiler error

D. Nothing

4. Fill in the blanks so that this program displays a Java GUI frame:

public class MyFrame { public static void main ( String [] args ) {

JFrame frame = new _________( My JFrame );

frame.___________( 150, 150 );

frame.___________( true );

}

}

A. JFrame, setVisible, setSize

B. JWindow, setSize, paint

C. JForm, setVisible, setOn

D. JFrame, setSize, setVisible

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

If f(x) sec t - sec x/ t - x, find the value of f'(/4). im

Answered: 1 week ago

Question

the provided code in the solution yeilds this No data read!

Answered: 1 week ago