Today i started reading Java™ How to Program, Sixth Edition By H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.
Nice book written By H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.
I wanted to share few quotations found the book from the 4th chapter.
1) An algorithm is a procedure for solving a problem in terms of the actions to execute and the order in which the actions execute.
2) Specifying the order in which statements (actions) execute in a program is called program control.
3) Pseudocode helps a programmer think out a program before attempting to write it in a programming language.
4) Activity diagrams are part of the Unified Modeling Language (UML)an industry standard for modeling software systems.
5) An activity diagram models the workflow (also called the activity) of a software system.
6) Activity diagrams are composed of special-purpose symbols, such as action-state symbols, diamonds and small circles. These symbols are connected by transition arrows that represent the flow of the activity.
7) Like pseudocode, activity diagrams help programmers develop and represent algorithms.
8) An action state is represented as a rectangle with its left and right sides replaced with arcs curving outward. The action expression appears inside the action state.
9) The arrows in an activity diagram represent transitions, which indicate the order in which the actions represented by action states occur.
10) The solid circle located at the top of an activity diagram represents the initial statethe beginning of the workflow before the program performs the modeled actions.
11) The solid circle surrounded by a hollow circle that appears at the bottom of the activity diagram represents the final statethe end of the workflow after the program performs its actions.
12) Rectangles with the upper-right corners folded over are called notes in the UML. Notes are explanatory remarks that describe the purpose of symbols in the diagram. A dotted line connects each note with the element that the note describes.
13) A diamond or decision symbol in an activity diagram indicates that a decision is to be made. The workflow will continue along a path determined by the symbol's associated guard conditions, which can be true or false. Each transition arrow emerging from a decision symbol has a guard condition (specified in square brackets next to the transition arrow). If a guard condition is true, the workflow enters the action state to which the transition arrow points.
14) A diamond in an activity diagram also represents the merge symbol, which joins two flows of activity into one. A merge symbol has two or more transition arrows pointing to the diamond and only one transition arrow pointing from the diamond, to indicate multiple activity flows merging to continue the activity.
15) Top-down, stepwise refinement is a process for refining pseudocode by maintaining a complete representation of the program during each refinement.
16) There are three types of control structuressequence, selection and repetition.
17) The sequence structure is built into Javaby default, statements execute in the order they appear.
18) A selection structure chooses among alternative courses of action.
19) The if single-selection statement either performs (selects) an action if a condition is true, or skips the action if the condition is false.
20) The if...else double-selection statement performs (selects) an action if a condition is true and performs a different action if the condition is false.
21) To include several statements in an if's body (or the body of else for an if...else statement), enclose the statements in braces ({ and }). A set of statements contained within a pair of braces is called a block. A block can be placed anywhere in a program that a single statement can be placed.
22) An empty statement, indicating that no action is to be taken, is indicated by a semicolon (;).
23) A repetition statement specifies that an action is to be repeated while some condition remains true.
24) The format for the while repetition statement is
while ( condition )
statement
25) Counter-controlled repetition is used when the number of repetitions is known before a loop begins executing.
26) The unary cast operator (double) creates a temporary floating-point copy of its operand.
27) Sentinel-controlled repetition is used when the number of repetitions is not known before a loop begins executing.
28) A nested control statement appears in the body of another control statement.
29) Java provides the arithmetic compound assignment operators +=, -=, *=, /= and %= for abbreviating assignment expressions.
30) The increment operator, ++, and the decrement operator, --, increment or decrement a variable by 1, respectively. If the operator is prefixed to the variable, the variable is incremented or decremented by 1 first, and then its new value is used in the expression in which it appears. If the operator is postfixed to the variable, the variable is first used in the expression in which it appears, and then the variable's value is incremented or decremented by 1.
31) The primitive types (boolean, char, byte, short, int, long, float and double) are portable across all computer platforms that support Java.
32) Java is a strongly typed languageit requires all variables to have a type.
33) Local variables are declared inside methods and are not assigned default values.
34) Variables declared outside of methods as fields are assigned default values. Instance variables of types char, byte, short, int, long, float and double are all given the value 0 by default. Instance variables of type boolean are given the value false by default. Reference-type instance variables are initialized by default to the value null.
About the Authors
Dr. Harvey M. Deitel, Chairman and Chief Strategy Officer of Deitel & Associates, Inc., has 43 years experience in the computing field, including extensive industry and academic experience. Dr. Deitel earned B.S. and M.S. degrees from the Massachusetts Institute of Technology and a Ph.D. from Boston University. He worked on the pioneering virtual-memory operating-systems projects at IBM and MIT that developed techniques now widely implemented in systems such as UNIX, Linux and Windows XP. He has 20 years of college teaching experience, including earning tenure and serving as the Chairman of the Computer Science Department at Boston College before founding Deitel & Associates, Inc., with his son, Paul J. Deitel. He and Paul are the co-authors of several dozen books and multimedia packages and they are writing many more. With translations published in Japanese, German, Russian, Spanish, Traditional Chinese, Simplified Chinese, Korean, French, Polish, Italian, Portuguese, Greek, Urdu and Turkish, the Deitels' texts have earned international recognition. Dr. Deitel has delivered hundreds of professional seminars to major corporations, academic institutions, government organizations and the military.
Paul J. Deitel, CEO and Chief Technical Officer of Deitel & Associates, Inc., is a graduate of the MIT's Sloan School of Management, where he studied Information Technology. Through Deitel & Associates, Inc., he has delivered Java, C, C++, Internet and World Wide Web courses to industry clients, including IBM, Sun Microsystems, Dell, Lucent Technologies, Fidelity, NASA at the Kennedy Space Center, the National Severe Storm Laboratory, Compaq, White Sands Missile Range, Rogue Wave Software, Boeing, Stratus, Cambridge Technology Partners, Open Environment Corporation, One Wave, Hyperion Software, Adra Systems, Entergy, CableData Systems and many other organizations. Paul is one of the most experienced Java corporate trainers having taught about 100 professional Java training courses. He has also lectured on C++ and Java for the Boston Chapter of the Association for Computing Machinery. He and his father, Dr. Harvey M. Deitel, are the world's best-selling Computer Science textbook authors.
Thursday, 29 January 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment