{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ch01 - Part I The Programmer's Exam CHAPTERS 1 2 3 4 5...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Part I The Programmer’s Exam CHAPTERS 1 Language Fundamentals 2 Declarations and Access Control 3 Operators and Assignments 4 Flow Control, Exceptions, and Assertions 5 Object Orientation, Overloading and Overriding, Constructors, and Return Types 6 Java.lang—The Math Class, Strings, and Wrappers 7 Objects and Collections 8 Inner Classes 9 Threads
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
1 Language Fundamentals CERTIFICATION OBJECTIVES Java Programming Language Keywords Literals and Ranges of All Primitive Data Types Array Declaration, Construction, and Initialization Using a Variable or Array Element That Is Uninitialized and Unassigned Command-Line Arguments to Main Two-Minute Drill Q&A Self Test
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
T his chapter looks at the Java fundamentals that you need to pass the Java 1.4 Programmer exam. Because you’re planning on becoming Sun certified, we assume you already know the basics of Java, so this chapter concentrates just on the details you’ll need for the exam. If you’re completely new to Java, this chapter (and the rest of the book) will be confusing, despite our spectacularly cogent writing. That’s our story and we’re sticking to it! CERTIFICATION OBJECTIVE Java Programming Language Keywords (Exam Objective 4.4) Identify all Java programming language keywords and correctly constructed identifiers. Keywords are special reserved words in Java that you cannot use as identifiers (names) for classes, methods, or variables. They have meaning to the compiler; it uses them to figure out what your source code is trying to do. Table 1-1 contains all 49 of the reserved keywords. You must memorize these for the test; you can count on being asked to select the keywords (and nonkeywords) from a list. Notice none of the reserved words have 4 Chapter 1: Language Fundamentals abstract boolean break byte case catch char class const continue default do double else extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while assert TABLE 1-1 Complete List of Java Keywords
Image of page 4
Java Programming Language Keywords (Exam Objective 4.4) 5 capital letters; this is a good first step when weeding out nonkeywords on the exam. You’re probably familiar with most of them, but we’ll review them anyway. Don’t worry right now about what each keyword means or does; we’ll cover most of them in more detail in later chapters. Look for questions that include reserved words from languages other than Java. You might see include , overload , unsigned , virtual , friend , and the like. Besides appearing in questions specifically asking for keyword identification, the “imposter” words may show up in code examples used anywhere in the exam. Repeat after me, “ Java is not C++ .” Access Modifiers The following are access modifiers: private Makes a method or a variable accessible only from within its own class.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern