Java Quiz 1 – Beginners Sharing is caring Welcome to your Java Quiz 1 - Beginners What is the bit size of float and double in Java? 32 and 64 respectively 32 and 32 respectively 64 and 64 respectively 64 and 32 respectively None Which of the following an intermediate operation in Stream API? forEach map reduce collect None Will this code compile : Yes No None If we add the elements (5,3,2,5,1) in an ArrayList, and loop though it to print the values, what will be the output? 5,5,3,2,1 1,2,3,5,5 5,3,2,5,1 5,3,2,1 None Which of this is valid built-in Functional Interface from java.util.function? Collector Final Function Generics None Which of the following is used to call the constructor of parent class? super() super this parent() None How many bits are required to store a variable of type ‘char’? 8 16 32 1 None What is the range of signed integer values which can be stored in a byte variable? 0 to 128 -127 to 128 -128 to 128 -128 to 127 None Which of the following maintains order of insertion as well as does not allow duplicate values? ArrayList TreeMap LinkedHashSet HashSet None Please fill in the comment box below. Name Email Time's up Sharing is caring