- Select all correct statements:
- IDE executes Java code without compiling it
- IDE uses the installed Java to execute the code
- IDE checks the code without using the Java installation
- IDE uses the compiler of the Java installation
- Select all correct statements:
- All the classes used by the application have to be listed on the classpath
- The locations of all the classes used by the application have to be listed on the classpath
- The compiler can find a class if it is in the folder listed on the classpath
- Classes of the main package do not need to be listed on the classpath
- Select all correct statements:
- All the .jar files used by the application have to be listed on the classpath
- The locations of all the .jar files used by the application have to be listed on the classpath
- The JVM can find a class only if it is in the .jar file listed on the classpath
- Every class can have the main() method
- Select all correct statements:
- Every .jar file that has a manifest is an executable
- If the -jar option is used by the java command, the classpath option is ignored
- Every .jar file has a manifest
- An executable .jar is a ZIP file with a manifest
- Select all correct statements:
- Class loading and linking can work in parallel on different classes
- Class loading moves the class to the execution area
- Class linking connects two classes
- Class linking uses memory references
- Select all correct statements:
- Class initialization assigns values to the instance properties
- Class initialization happens every time the class is referred to by another class
- Class initialization assigns values to static properties
- Class initialization provides data to the instance of java.lang.Class
- Select all correct statements:
- Class instantiation may never happen
- Class instantiation includes object properties initialization
- Class instantiation includes memory allocation on a heap
- Class instantiation includes executing a constructor code
- Select all correct statements:
- Method execution includes binary code generation
- Method execution includes source code compilation
- Method execution includes reusing the binary code produced by the Just-In-Time compiler
- Method execution counts how many times every method was called
- Select all correct statements:
- Garbage collection starts immediately after the System.gc() method is called
- The application can be terminated with or without an error code
- The application exits as soon as an exception is thrown
- The main thread is a user thread
- Select all correct statements:
- JVM has memory areas shared across all threads
- JVM has memory areas not shared across threads
- Class metadata is shared across all threads
- Method parameter values are not shared across threads
- Select all correct statements:
- Classloader populates the method area
- Classloader allocates memory on a heap
- Classloader writes to the .class file
- Classloader resolves method references
- Select all correct statements:
- The execution engine allocates memory on a heap
- The execution engine terminates the application
- The execution engine runs garbage collection
- The execution engine initializes static fields not initialized by a programmer
- Select all correct statements:
- The number of transactions per second that a database can support is a throughput measure
- When the garbage collector pauses the application it is called stop-all-things
- How slowly the website returns data is a responsiveness measure
- The garbage collector clears the CPU queue of jobs
- Select all correct statements:
- Object age is measured by the number of seconds since it was created
- The older the object, the more probable it is going to be removed from the memory
- Cleaning the old generation is a major collection
- Moving an object from one area of the young generation to another area of the young generation is a minor collection
- Select all correct statements:
- The garbage collector can be tuned by setting the parameters of the javac command
- The garbage collector can be tuned by setting the parameters of the java command
- The garbage collector works with its own logic and cannot change its behavior based on the set parameters
- Cleaning the old generation area requires a stop-the-world pause