3i Infotech Papers: Sample Questions 1135 - 1136 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1135

» Languages » Java

Essay Question▾

Describe in Detail

What do you know about the garbage collector?

Explanation

Understanding of Garbage collection

Understanding of Garbage Collection

Understanding of Garbage collection

  • It means unreferenced objects.

  • Process of reclaiming the runtime unused memory automatically.

  • It is a way to destroy the unused objects.

  • We using free () function in C language and delete () in C++.

  • It is performed automatically in Java- Java thus provides better memory management.

Advantages of Garbage Collection:

  • Make java memory efficient because garbage collector removes the unreferenced objects

  • It automatically done by the garbage collector.

  • So we don’t need to make extra efforts.

Advantages of Garbage Collection

Advantages of Garbage Collection

Advantages of Garbage Collection

Question number: 1136

» Languages » Java

Essay Question▾

Describe in Detail

Explain Just In Time Concept?

Explanation

Understanding of at compile time and at run time.

Understanding of at Compile Time and at Run Time.

Understanding of at compile time and at run time.

  • The Java programming language and environment, a just-in-time compiler turns Java bytecode into instructions sent directly to the processor.

  • Source language statements are compiled by the Java compiler into bytecode matching a particular hardware platform’s processor.

  • This compilation when the application is used is called real time or on the fly as the program executes.

  • Such JIT Compilation is also known as dynamic translation.

  • Compilers typically have to balance compile resources with runtime concerns. JIT compiler’s on-the-fly compile allows for dynamic changes according to the platform.