Multiple choice technology

A class file is:

  1. A file that contains a section of compiled Java code which, with other class files, can be used to run a Java

  2. A file that contains a set of security rules to ensure that Java can't be used to distribute viruses

  3. A file that is written by trainees on our courses

  4. A file that contains a library of methods and objects

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

A .class file contains compiled Java bytecode for a single class. Multiple class files work together (along with libraries) to run a complete Java application.