Java Basics Quiz May 20, 2021 Leave a Comment on Java Basics Quiz Welcome to your Java Basics Quiz. You are attempting quiz on October 22, 2021. For your information, please note that this Java Basics Quiz has only single choice questions. Read each and every questions carefully before you start answering. You will have 10 min to complete the quiz. Press the Start quiz button to initiate the quiz. Once complete you press Finish button to complete the test. After completion of test you can see your quiz result with sharing option, You can share your quiz result to social media like Facebook, Instagram etc. Note: You can view all the answers at the end of this quiz. Best of luck for LTE Java Basics Quiz 1. Is hashmap an ordered collection?FalseTrue2. Which of these method is used to reduce the capacity of an ArrayList ObjecttrimToSize()trimSize()trimTosize()trim()3. Which of the below does not implement Map Interface ?EnumMapHashMapVectorHashtable4. How to sort the elements of ArrayList?Sorter.sortAsc(listObj)Collection.sort(listObj)Collection.sort(lsitObj)listObj.sort()5. Map Implements collection interface?FalseMay BeTrue6. Which of the following is a correct constructor for the thread?Thread (Runnable a, int priority)Thread (Runnable a, ThreadGroup t)Thread (int priority)Thread(Runnable a, String str)7. What is these keywords must be used to inherit a class?superextentthisextends8. Which of these method waits for the thread to terminate?sleep()isAlivejoin()stop()9. Which of these data types is used by operating system to manage the Recursion in java?StackArrayTreeQueue10. What happens if constructor of class A is made private?Inherited class can instantiate objects of class AObjects of class A can be instantiated only within the class where it is declaredClasses within the same package as class A can instantiate objects of class AAny class can instantiate objects of class A11. What will happen of two thread of same priority are called to be processed simultaneously?None of them will be executedBoth of them will be executedIt is dependent on the operating systemAnyone will be executed first lexographically12. What is the use of Interpreter?They convert bytecode to machine language codeThey are intermediate between JIT and JVMThey read high level code and execute themIt is a synonyms of JIT13. Which of the following will ensure the thread will be in running state?wait()yield()notify()Thread.killThread()14. Which of these access specifiers must be used for main() methodpublicNoneprotectedprivate15. Which of these are types multitasking?Thread basedNoneProcess basedProcess and Thread based16. Which component is responsible for converting bytecode into machine specific code?JITJREJDKJVM17. Which of these keywords are used to implement synchronization?synchronizedsynchronizesynchsyn18. Which of the below is not a memory leak solution?Process restartCode changesJVM parameter tuningGC Parameter tuningPlease fill in the comment box below.