English

Explain the Linking of Java Programs.

Advertisements

Question

Explain the Linking of Java Programs.

Explain
Advertisements

Solution

Linking of Java Programs is the process of connecting the compiled Java bytecode with the required classes and libraries during program execution. It is performed by the Java Virtual Machine (JVM) after the required classes are loaded into memory.

The linking process mainly involves three stages:

  1. Verification: The JVM checks the bytecode to ensure that it is valid and follows Java's security rules.
  2. Preparation: Memory is allocated for static variables, and they are assigned their default values.
  3. Resolution: Symbolic references to classes, methods and fields are converted into direct references.
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Variables and Expressions - EXERCISE [Page 131]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 6 Variables and Expressions
EXERCISE | Q 25. (iii) | Page 131
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×