Multiple choice technology programming languages

Java APIs are libraries of compiled code

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java APIs are pre-compiled code libraries that provide ready-to-use functionality. These packages (like java.lang, java.util, java.io) contain compiled classes and methods that developers can import and use without rewriting common functionality. This is fundamental to Java's 'batteries included' approach.

AI explanation

Java APIs (like the standard Java Class Library — java.lang, java.util, java.io, etc.) consist of pre-written, pre-compiled classes and interfaces packaged as .class files (often bundled in JARs), which developers import and call rather than writing from scratch. This makes "Java APIs are libraries of compiled code" a true statement — they are indeed collections of already-compiled, reusable code that the JVM can load and execute.