Languages-Java [3i Infotech Placement]: Sample Questions 105 - 106 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 105

Describe in Detail Essay▾

What do you know about the garbage collector?

Edit

Explanation

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

Question 106

Describe in Detail Essay▾

Explain Just In Time Concept?

Edit

Explanation

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.