Practice mode / Java Which one is a template for creating different objects? A Option A: An Array B Option B: A class C Option C: Interface D Option D: Method Correct answer B. A class Show answer
Question 01 / Java What is garbage collection in the context of Java? A Option A: Java deletes all unused java files on the system. B Option B: Memory used by the object with no reference is automatically reclaimeD. C Option C: The JVM cleans output of Java program with error. D Option D: Any unused package in a program automatically gets deleteD. Correct answer B. Memory used by the object with no reference is automatically reclaimeD. Show answer Open question
Question 02 / Java Java language was initially called as A Option A: Sumatra B Option B: J++ C Option C: Oak D Option D: Pine Correct answer C. Oak Show answer Open question
Question 03 / Java Which variables are created when an object is created with the use of the keyword ‘new’ and destroyed when the object is destroyed? A Option A: Local variables B Option B: Instance variables C Option C: Class Variables D Option D: Static variables Correct answer B. Instance variables Show answer Open question
Question 04 / Java Data type long literals are appended by A Option A: Uppercase L B Option B: Lowercase L C Option C: Long D Option D: Both A and B Correct answer D. Both A and B Show answer Open question
Discussion