Java Quiz (Set 6) Java Quiz (Set 6) 1 / 10 What is static block? It is used to create syncronized code. There is no such block. It is used to initialize the static data member., It is excuted before main method at the time of class loading. None of the above. 2 / 10 Can be constructor be made private? True. False. 3 / 10 Can be constructor be made final? True. False. 4 / 10 What is JIT compiler? JIT improves the runtime performance of computer programs based on bytecode. JIT is an application development framework. JIT is an implementation of the Java Virtual Machine which executes Java programs. None of the above. 5 / 10 What is JRE? JRE is a java based GUI application. JRE is an application development framework. JRE is an implementation of the Java Virtual Machine which executes Java programs. None of the above. 6 / 10 What is TreeSet Interface? It is a Set implemented when we want elements in a tree based order. It is a Set implemented when we want elements in a sorted order. It is a Set implemented when we want elements in a binary tree format. It is a Set implemented when we want elements in a hiearchical order. 7 / 10 What is Set Interface? Set is a collection of element which contains elements along with their key. Set is a collection of element which contains hashcode of elements. Set is a collection of element which cannot contain duplicate elements. Set is a collection of element which can contain duplicate elements. 8 / 10 What is an applet? An applet is a Java program that runs in a Web browser. Applet is a standalone java program. Applet is a tool. Applet is a run time environment. 9 / 10 What kind of variables a class can consist of? class variables, instance variables class variables, local variables, instance variables class variables class variables, local variables 10 / 10 Composition represents HAS-A relationship. IS-A relationship. Your score isThe average score is 0% 0% Restart quiz