02 Feb Explain briefly how
Unit 1 discussion
Extending and Overriding
Two of the main object-oriented features of the Java programming language are the ability to inherit the code of one class, and the ability to override some of the inherited methods to affect a polymorphic behavior. In this discussion, you will explore both of these concepts and how should they be programmed.
Unzip the NetBeans project zip file (U1D1_ExtendOverride.zip) and load it into your NetBeans IDE.
Examine the loaded project, and answer these questions:
What would be the output of this program when it is run?
Why does calling toString() on the Person and Student objects return their names (“Person” and “Student”) while calling toString() on the Employee object returns “Person”?
How can we fix this such that calling toString() on the Employee object return its name as well?
Provide a screenshot of your result of your fix.
Explain, briefly, how you completed this exercise, the algorithm you used (via pseudo code or other description tools), the major issues you faced. and how you solved these issues.
Reflect on your experience and what you learned.
Response Guidelines
Comment on the response of at least one other learner.
Learning Components
This activity will help you achieve the following learning components:
Explain algorithms used to complete a fix.
Unit 2 discussion
Writing to a Text File
Reading from and writing to a text file are common tasks in Java programming. Developers often use text files in lieu of databases to store and retrieve the data that a program needs.
In this discussion, you will practice writing to a text file from within your Java program.
Create a Java program that writes your name and today’s date to a text file called “mytext.txt”.
Answer the question, should we use exception if the “mytext.txt” exists when we try to write to it? Why or why not?
Provide a screenshot of your result of your work (code + text file).
Explain, briefly, how you completed this exercise, the algorithm you used (via pseudo code or other description tools), the major issues you faced, and how you solved these issues. Reflect on your experience and what you learned.
Response Guidelines
Comment on the responses of at least one other learner.
Learning Components
This activity will help you achieve the following learning components:
Perform text input and output to and from a Java application
Explain Java exceptions and their types
Unit 3 discussion
Coloring Four Quadrants of a JavaFX Square Scene
JavaFX is a new and exciting framework to develop Java GUI applications. There is always more than one way for completing a GUI task with JavaFX.
For this discussion, you practiced using the fundamentals of JavaFX to color the four quadrants of a JavaFX square scene by creating a new JavaFX application that displays a JavaFX square scene divided into four quadrants. Each quadrant should have a different background color. (Example provided in study resources.)
Please note: The colors you use are unimportant. The important element is the fact that there are four separate colors in your final product.
Provide a screenshot of your result of your work (code + application output).
Explain, briefly, how you completed this exercise, the algorithm you used (via pseudo code or other description tools), the major issues you faced, and how you solved these issues.
Reflect on your experience and what you learned.
Response Guidelines
Comment on the responses of at least one other learner.
Learning Components
This activity will help you achieve the following learning components:
Explain how to use the Color and the Font classes
Explain algorithms used to complete a fix.
Unit 4 discussion
Handling JavaFX Events
The JavaFX framework provides more than one way to handle events. For event handlers, we could use inner classes, anonymous inner classes, or the new Java 8 feature of lambda expressions. In this discussion, you will explore these different ways of writing event handles in JavaFX.
To prepare for this discussion, you must unzip the attached NetBeans project zip file (U4D1_HandleEvents.zip) and load it into your NetBeans IDE. The project uses an inner class to handle the click event on the button node. Rewrite the event handler using either an anonymous inner class, or a lambda expression.
In this discussion:
Provide a screenshot of your result of your work (code + application output).
Explain, briefly, how you completed this exercise, the algorithm you used (via pseudo code or other description tools), the major issues you faced, and how you solved these issues.
Reflect on your experience and what you learned.
Response Guidelines
Comment on the responses of at least one other learner.
Learning Components
This activity will help you achieve the following learning components:
Describe how user actions are handled in a JavaFX application
Explain what event-driven programming means
Unit 5 discussion
Using Generic ArrayList
Java generics features ensures strong typing validation at compile time. That is, an object must be of the same type it is expected to be at compile time. Generics are applied extensively in all types of Java collection libraries.
To prepare for this discussion you must:
Create a Java program that declares an instance of ArrayList.
Add four elements to your instance representing four of your favorite food items.
Print the content of your instance of ArrayList.
Provide a screenshot of the result of your work (code + application output).
Explain briefly how you completed this exercise, the algorithm you used (via pseudo code or other description tools), the major issues you faced, and how you solved these issues. Reflect on your experience and what you learned.
Response Guidelines
Comment on the responses of at least one other learner.
Learning Components
This activity will help you achieve the following learning components:
Explain what the Java generics feature means and how it is used
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.