Java Question

0 comments

The test is 30-40 multiple choices, and it is about

Chapter 1:

  1. Java’s use of compiler, bytecodes, and JVM
  2. Types of errors (syntax vs. runtime vs. logic)
  3. Keywords/reserved words vs. identifiers
  4. Strings and escape sequences
  5. Comments
  6. Arrangement of classes, static methods, and statements
  7. Procedural decomposition and control flow

Chapter 2:

  1. primitive types vs. objects
  2. int, double, char, and boolean types
  3. expressions, literals, and operators
  4. type casting
  5. variables, declaration, and assignment
  6. string concatenation
  7. for loops and nested loops
  8. variable scope and local variables
  9. class constants

Chapter 3:

  1. Formal and actual parameters
  2. return statement
  3. Math class
  4. String class, including indexing
  5. Scanner class, including tokenization and whitespace

Chapter 4:

  1. if and if/else conditionals
  2. Boolean expressions and relational operators
  3. Object equality
  4. Character class
  5. String formatting (printf)
  6. Cumulative loop pattern

Chapter 5:

  1. while and do/while loops
  2. Fencepost and sentinel loop patterns
  3. Lazy evaluation and short-circuiting of && and ||
  4. Boolean Zen (simplification of Boolean expressions and statements)
  5. Logical assertions, preconditions and postconditions
  6. Pseudorandom numbers

Chapter 6:

  1. Token-based and line-based file input using Scanners
  2. File output using Printstream
  3. Checked exceptions and the throws clause

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}