Changes between Version 3 and Version 4 of JavaProgramming
- Timestamp:
- Jan 29, 2015, 1:02:42 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaProgramming
v3 v4 11 11 If you have already learned the basics of Java, 12 12 see [#java Advanced Java After Having Already Learned Java Syntax & Control Structures]. 13 If you think you are a master in Java and computer science in general, 14 try [#superjava Incredibly Advanced Java Structures, Techniques, and Design]. 15 If you think you are the absolute best programmer in the world, 16 try again. 13 17 14 18 == [=#first_lang]Java as Your First (Programming) Language 15 19 20 === Introduction to Computer Hardware 21 For those of you starting out in the programming world, a brief description of the hardware of a computational machine is necessary. 22 23 See [wiki:JavaLanguageArchitecture here] to read about the JVM and how Java compiles. 16 24 17 25 == Java as Your Second (Programming) Language … … 23 31 == [=#java]Advanced Java After Having Already Learned Java Syntax & Control Structures 24 32 25 If you have already learned object oriented concepts, skip to the [# advanced_javanext section].33 If you have already learned object oriented concepts, skip to the [#next next section]. 26 34 27 35 === Object-Oriented Programming Concepts … … 36 44 37 45 ==== Inheritance 46 Oftentimes, classes will reuse code from another class and build on it. For example, there might a generic {{{Car}}} class, which several others might ''subclass'' and create additional functionality in their classes, which might be {{{Porsche}}} and {{{Mustang}}}. 38 47 39 48 ==== Polymorphism 40 49 41 === Advanced Java Techniques 50 === [=#next]The Ternary Operator 51 When assigning a value to a variable, sometimes, if the value being assigned is subject to a condition, the ternary operator will simplify code, save space, and enhance comprehension, but only when used properly. The operator transforms this: 42 52 53 {{{ 54 #!java 55 int integer; 56 57 if (newIntegerWanted()) 58 integer = randomInteger(); 59 else 60 integer = 0; 61 }}} 62 63 to: 64 65 {{{ 66 #!java 67 int integer = newIntegerWanted() ? randomInteger() : 0; 68 }}} 69 70 === Abstract Classes 71 ==== Choosing between an abstract class, an interface, or standard inheritance 72 73 == [=#superjava]Super Advanced Java Structures, Techniques, & Design 74