Mathematics, Computer Science, and Statistics
Bloomsburg University

Object-Oriented Programming with Java

Make sure you understand these ideas. You may meet them on a quiz.

  1. What the Java compiler and the JVM do.
  2. How to compile source code at the command prompt.
  3. How to run a Java program at the command prompt.
  4. The difference between syntax and logical errors.
  5. The difference between source code and byte code.
  6. The difference between source files and class files.
  7. How to declare and initialize int variables.
  8. How to use int variables in arithmetic expressions.
  9. How to use the Java API Specs to find the package containing a given class.
  10. How to use the Java API Specs to determine the return type of a method.
  11. The difference between classes and objects.
  12. How to create objects and invoke their methods.
  13. How to generate random integers in a given range.
  14. Concatenation of string literals and numerical values.
  15. The difference between an object reference and a number variable.
  16. The difference between instance fields and local variables.
  17. How to identify instance fields, local variables and parameters in a class.
  18. The purpose of constructors, and how they differ from ordinary methods.
  19. Where classes, objects, methods and parameters appear in a given line of code.
  20. How to create and use JFrame objects.
  21. How to override the paintComponent method.
  22. How to create and use Color objects in paintComponent.
  23. How to create and draw rectangles and ellipses.
  24. How to determine the output of a small code fragment with variables modified in a loop.
  25. The equivalence of for-loops and while-loops.
  26. How to implement a loop to solve a simple arithmetic problem (e.g., calculating sum of numbers 1-1000).
  27. What is meant by the scope of a variable.
  28. The scope of instance fields, local variables and parameters.
  29. What is meant by the state of an object.
  30. How to define accessors and mutators in terms of the state of an object.
  31. What it means for a method to be static.
  32. What is the implicit parameter.
  33. What is an immutable class.
  34. The difference between instance fields and class fields.
  35. The difference between instance methods and class methods.
  36. What it means for the public interface of a class to be cohesive.
  37. How to declare and initialize arrays.
  38. How to declare ArrayLists and add/remove elements.
  39. Autoboxing and unboxing.

Home   |   Topics   |   Policies   |   Links   |   Style Guide   |   Coding and Submitting   |   Reasons to Major in CS   |   Career Paths