All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Study Help
New
Search
Search
Sign In
Register
study help
computer science
java software solutions
Questions and Answers of
Java Software Solutions
Explore the derivation of new classes from existing ones.
Define the concept and purpose of method overriding.
Discuss the design of class hierarchies.
Discuss the issue of visibility as it relates to inheritance.
Explore the ability to derive one interface from another.
Discuss object-oriented design in the context of inheritance.
Describe the inheritance structure for JavaFX controls and shapes.
Explore color and date pickers and dialog boxes.
Define polymorphism and explore its benefits.
Discuss the concept of dynamic binding.
Use inheritance relationships to create polymorphic references.
Use interfaces to create polymorphic references.
Explore sorting and searching using polymorphic implementations.
Discuss object-oriented design in the context of polymorphism.
Explore the concept of property binding.
Examine slider and spinner controls.
PP 11.1 Write a program that creates an exception class called StringTooLongException, designed to be thrown when a string is discovered that has too many characters in it. In the main driver of the
PP 11.2 Modify the solution to PP 11.1 such that it catches and handles the exception if it is thrown. Handle the exception by printing an appropriate message, and then continue processing more
PP 11.3 Suppose in a particular business all documents are given a two-character designation starting with either U, C, or P, standing for unclassified, confidential, or proprietary. Create
PP 11.4 Modify the solution to PP 11.3 such that it catches and handles the exception if it is thrown. Handle the exception by printing an appropriate message, and then continue processing.
PP 11.5 Create a new version of the QuoteOptions program from Chapter 5 that uses a list view to pick the quote category rather than a set of radio buttons. Provide at least 6 categories and
PP 11.6 Write a JavaFX application that uses a split pane to display three versions of an image side by side. The first image will be in full color, the second will be in black and white, and the
PP 11.7 Write a JavaFX application based on the DisplayFile program from Chapter 9. In addition to opening and displaying a file, allow the user to modify the text in the text area. Provide a Save
EX 11.1 Create a UML class diagram for the ProductCodes program.
EX 11.2 What would happen if the try statement were removed from the level1 method of the ExceptionScope class in the Propagation program?
EX 11.3 What would happen if the try statement described in the previous exercise were moved to the level2 method?
EX 11.4 Look up the following exception classes in the online Java API documentation and describe their purpose: a. ArithmeticException b. NullPointerException C. NumberFormatException d.
EX 11.5 Other than the examples discussed in this chapter, describe a situation in which you might disable control(s) to help guide user actions.
EX 11.6 Explain how the functionality of the FoodImages program would change if the property binding was removed.
SR 11.1 What is the difference between an error and an exception?
SR 11.2 In what ways might a thrown exception be handled?
SR 11.3 True or False. Explain. a. An exception and an error are the same thing. b. An attempt to divide by zero will cause an exception to be thrown. c. If a program does not handle a raised
SR 11.4 What is a catch clause?
SR 11.5 What is a finally clause?
SR 11.6 What output is produced by the following code fragment under each of the stated conditions? try 1 review.question(); } catch (Exceptionl exception) System.out.println("one caught");
SR 11.7 What happens if an exception is not caught?
SR 7.25 Select the term from the following list that best matches each of the following phrases: black-box, defects, regression, review, test case, test suite, walkthrough, white-box a. Running
SR 7.26 What general guidelines for GUI design are presented in this section?
SR 7.27 Why is a good user interface design so important?
SR 7.28 What events are generated when the mouse button is clicked?
SR 7.29 What events are generated when the mouse pointer is moved from one location in a window to another?
SR 7.30 How do you obtain the location of the mouse when a mouse event occurs?
SR 7.31 What events are generated when a keyboard key is typed?
SR 7.32 In a program, how do you determine which key has been pressed?
EX 7.1 Write a method called average that accepts two integer parameters and returns their average as a floating point value.
EX 7.2 Overload the average method of Exercise 7.1 such that if three integers are provided as parameters, the method returns the average of all three.
EX 7.3 Overload the average method of Exercise 7.1 to accept four integer parameters and return their average.
EX 7.4 Write a method called multiconcat that takes a String and an integer as parameters. Return a string that consists of the string parameter concatenated with itself count times, where count is
EX 7.5 Overload the multiconcat method from Exercise 7.4 such that if the integer parameter is not provided, the method returns the string concatenated with itself. For example, if the parameter is
EX 7.6 Write a method called makeCircle that returns a new Circle object based on the method's parameters: two integer values representing the (x, y) coordinates of the center of the circle, an
EX 7.7 Overload the makeCircle method of Exercise 7.6 such that if the Color parameter is not provided, the circle's color will default to red.
EX 7.8 Overload the makeCircle method of Exercise 7.6 such that if the radius is not provided, a random radius in the range 10 to 20 will be used.
EX 7.9 Overload the makeCircle method of Exercise 7.6 such that if both the color and radius are not provided, the color will default to green and the radius will default to 40.
EX 7.10 Discuss the manner in which Java passes parameters to a method. Is this technique consistent between primitive types and objects? Explain.
EX 7.11 Explain why a static method cannot refer to an instance variable.
EX 7.12 Can a class implement two interfaces that each contains the same method signature? Explain.
EX 7.13 Create an interface called visible that includes two methods: makeVisible and make Invisible. Both methods should take no parameters and should return a boolean result. Describe how a class
EX 7.14 Draw a UML class diagram that shows the relationships among the elements of Exercise 7.13
EX 7.15 Imagine a game in which some game elements can be broken by the player and others can't. Create an interface called Breakable that has a method called break that takes no parameters and
EX 7.16 Create an interface called VCR that has methods that represent the standard operations on a video cassette recorder (play, stop, etc.). Define the method signatures any way you desire.
EX 7.17 Draw a UML class diagram that shows the relationships among the elements of Exercise 7.16
EX 7.18 Compare and contrast a mouse clicked event and a key typed event.
EX 7.19 What is rubberbanding? How can it be accomplished?
SR 7.33 What does the AlienDirection program do when an arrow key is pressed?
PP 7.1 Modify the Account class from Chapter 4 so that it also permits an account to be opened with just a name and an account number, assuming an initial balance of zero. Modify the main method of
PP 7.2 Modify the student class presented in this chapter as follows. Each student object should also contain the scores for three tests. Provide a constructor that sets all instance values based on
PP 7.3 Write a class called course that represents a course taken at a school. Represent each student using the modified Student class from the previous programming project. Use an ArrayList in the
PP 7.4 Modify the Rational Number class so that it implements the comparable interface. To perform the comparison, compute an equivalent floating point value from the numerator and denominator for
PP 7.5 Write a Java interface called Priority that includes two methods: setPriority and getPriority. The interface should define a way to establish numeric priority among a set of objects. Design
PP 7.6 Modify the Task class from PP 7.5 so that it also implements the complexity interface defined in this chapter. Modify the driver class to show these new features of Task objects.
PP 7.7 Modify the Task class from PPs 7.5 and 7.6 so that it also implements the Comparable interface from the Java standard class library. Implement the interface such that the tasks are ranked by
PP 7.8 Write a Java interface called Lockable that includes the following methods: setKey, lock, unlock, and locked. The setKey, lock, and unlock methods take an integer parameter that represents the
PP 7.9 Write a version of the Account class from Chapter 4 so that it is Lockable as defined by PP 7.8
PP 7.10 Write a JavaFX application that counts the number of times the mouse button has been clicked on the scene. Display that number at the top of the window.
PP 7.11 Write a JavaFX application that changes its background color depending on where the mouse pointer is located. If the mouse pointer is on the left half of the program window, display red; if
PP 7.12 Write a JavaFX application that draws multiple circles using a rubberbanding technique. The circle size is determined by a mouse drag. Use the initial mouse press location as the fixed center
PP 7.13 Write a JavaFX application that serves as a mouse odometer, continually displaying how far, in pixels, the mouse has moved while it is over the program window. Display the current odometer
PP 7.14 Write a JavaFX application that displays the side view of a spaceship that follows the movement of the mouse. When the mouse button is pressed down, have a laser beam shoot out of the front
PP 7.15 Modify the Alien Direction program from this chapter so that the image is not allowed to move out of the visible area of
Define and use arrays for basic data organization.
Discuss bounds checking and techniques for managing capacity.
Discuss the issues related to arrays as objects and arrays of objects.
Explore the use of command-line arguments.
Describe the syntax and use of variable-length parameter lists.
Discuss the creation and use of multidimensional arrays.
Explore polygon and polyline shapes
SR 8.33 Describe how the JukeBox program associates the choice box selection made by the user with a specific audio clip.
SR 8.32 How many action event handlers are defined in the JukeBox program, and what do they respond to?
SR 8.31 What is a choice box?
SR 8.1 What is an array?
SR 8.2 How is each element of an array referenced?
SR 8.3 Based on the array shown in Figure 8.1, what are each of the following? a. height [1] b. height [2] + height [5] C. height [2 + 5] d. the value stored at index 8 e. the fourth value f.
SR 8.4 What is an array's element type?
SR 8.5 Describe the process of creating an array. When is memory allocated for the array?
SR 8.6 Write an array declaration to represent the ages of all 100 children attending a summer camp.
SR 8.7 Write an array declaration to represent the counts of how many times each face appeared when a standard six- sided die is rolled.
SR 8.8 Explain the concept of array bounds checking. What happens when a Java array is indexed with an invalid value?
SR 8.9 What is an off-by-one error? How does it relate to arrays?
SR 8.10 Write code that increments (by one) each element of an array of integers named values.
SR 8.11 Write code that computes and prints the sum of the elements of an array of integers named values.
Showing 200 - 300
of 978
1
2
3
4
5
6
7
8
9
10