Chapter 1: Problem 7
Explain the two compilation phases of Java programs.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Chapter 1: Problem 7
Explain the two compilation phases of Java programs.
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for freeFill in the blanks in each of the following statements (based on Section 1.6 ): a) Objects have the property of ________----although objects may know how to communicate with one another across well-defined interfaces, they normally are not allowed to know how other objects are implemented. b) Java programmers concentrate on creating _________which contain fields and the set of methods that manipulate those fields and provide services to clients. c) The process of analyzing and designing a system from an object-oriented point of view is called ______. d) With _______ new classes of objects are derived by absorbing characteristics of existing classes, then adding unique characteristics of their own. e)________is a graphical language that allows people who design software systems to use an industry standard notation to represent them. f) The size, shape, color and weight of an object are considered_______ of the object’s class.
(Programmer Responsibility and Liability) As a programmer in industry, you may develop software that could affect people's health or even their lives. Suppose a software bug in one of your programs were to cause a cancer patient to receive an excessive dose during radiation therapy and that the person is either severely injured or dies. Discuss the issues.
(Gender Neutrality ) Many people want to eliminate sexism in all forms of communication. You've been asked to create a program that can process a paragraph of text and replace gender-specific words with gender-neutral ones. Assuming that you've been given a list of gender-specific words and their gender-neutral replacements (e.g., replace "wife" by "spouse," "man" by "person, "daughter" by "child" and so on), explain the procedure you'd use to read through a paragraph of text and manually perform these replacements. How might your procedure generate a strange term like "woperchild," which is actually listed in the Urban Dictionary (www. urbandictionary.com)? In Chapter \(4,\) you'll learn that a more formal term for "procedure" is "algorithm," and that an algorithm specifies the steps to be performed and the order in which to perform them.
You're probably wearing on your wrist one of the world's most common types of objects a watch. Discuss how each of the following terms and concepts applies to the notion of a watch: object, attributes, behaviors, class, inheritance (consider, for example, an alarm clock), abstraction, modeling, messages, encapsulation, interface and information hiding.
Fill in the blanks in each of the following statements: a) The logical unit of the computer that receives information from outside the computer for use by the computer is the ______ b) The process of instructing the computer to solve a problem is called _______ c) ______ is a type of computer language that uses English-like abbreviations for machine-language instructions. d) _______ is a logical unit of the computer that sends information which has already been processed by the computer to various devices so that it may be used outside the computer. e) _______and _____ are logical units of the computer that retain information. f) is a logical unit of the computer that performs calculations. g) _____ is a logical unit of the computer that makes logical decisions. h)_______ languages are most convenient to the programmer for writing programs quickly and easily. i) The only language a computer can directly understand is that computer's ______ j) _______ is a logical unit of the computer that coordinates the activities of all the other logical units.
What do you think about this solution?
We value your feedback to improve our textbook solutions.