☕

Java: Core Concepts & OOP

73 cards · 🇺🇸 English

Core Java syntax and object-oriented programming fundamentals.

Study all 73 cards for free

Flashcards, quizzes, pixel-art games and a daily review that remembers for you.

Study this deck free

Try the first 10 cards

1 / 10
Question

Java

Knew itLearning

Tap the card for the answer · swipe right if you knew it, left if not

Already have an account? Sign in

Cards

  1. 1Java
    A high-level, general-purpose, memory-safe, object-oriented programming language
  2. 2WORA
    Write Once, Run Anywhere - compiled Java code can run on all platforms that support Java without recompiling
  3. 3Java bytecode
    An intermediate representation of Java code, intended to be executed by a JVM rather than directly by hardware
  4. 4JVM
    Java Virtual Machine - translates Java bytecode into the platform's machine language
  5. 5What was Java originally designed for?
    Interactive television (but it was too advanced for the digital cable TV industry at the time)
  6. 6Java type system
    Static, strong, safe, nominative, and manifest
  7. 7How does Java handle memory?
    Automatic garbage collection - the runtime recovers memory once objects are no longer in use
  8. 8Five primary goals of Java
    1) Simple, object-oriented, familiar 2) Robust and secure 3) Architecture-neutral and portable 4) High performance 5) Interpreted, threaded, and dynamic
  9. 9Four Java editions
    Java Card (smart cards), Java ME (limited resources), Java SE (workstations), Java EE (enterprise)
  10. 10Is Java syntax similar to C and C++?
    Yes, but Java was built almost exclusively as an object-oriented language
  11. 11Are all data items objects in Java?
    No, primitive data types (int, float, boolean, char) are not objects for performance reasons
  12. 12Does Java support operator overloading?
    No
  13. 13Does Java support multiple inheritance for classes?
    No, but multiple inheritance is supported for interfaces
  14. 14Three comment styles in Java
    // (single line), /* */ (multi-line), /** */ (Javadoc)
  15. 15Javadoc
    A comprehensive documentation system that generates documentation from /** */ comments
  16. 16Traditional main method signature
    public static void main(String[] args)
  17. 17Java applet
    Programs embedded in other applications (mainly web pages). API deprecated in Java 9 (2017)
  18. 18Java servlet
    Server-side Java EE components that generate responses (usually HTML) to HTTP requests
  19. 19JSP
    JavaServer Pages - server-side components that generate HTML using special delimiters <% %>
  20. 20Swing
    A graphical user interface library for Java SE with pluggable look and feel
  21. 21JavaFX
    A platform for creating desktop and rich web applications, intended to replace Swing
  22. 22Why were generics added to Java?
    To enable compile-time type checking for container classes without creating many similar classes
  23. 23Are generics type-safe in Java?
    No, the type system was proven unsound in 2016 - it's possible to cause ClassCastExceptions at runtime
  24. 24JRE
    Java Runtime Environment - contains parts of Java SE required to run Java programs (intended for end users)
  25. 25JDK
    Java Development Kit - includes development tools (compiler, Javadoc, Jar, debugger) for software developers
  26. 26OpenJDK
    An open-source Java SE implementation licensed under GNU GPL, the official Java reference implementation as of Java SE 7
  27. 27Default garbage collector since Java 9
    G1GC (Garbage First Garbage Collector)
  28. 28What other garbage collectors are available?
    ZGC (Java 11+), Shenandoah GC (Java 12+), Parallel GC (default in Java 8)
  29. 29Does Java support pointer arithmetic?
    No, to ensure type safety, security, and enable garbage collector to relocate objects
  30. 30Where are primitive types stored?
    Directly in fields (for objects) or on the stack (for methods) rather than on the heap

And 43 more cards. Study the whole deck free

Articles about this deck

More Programming decks

See all
Study all 73 cards free