eQuiz - Multiple choice quiz about JAVA
Following are multiple-choice questions related to JAVA programming language, there will be 23 questions in total with no answer for each time. Let's get started!
Question 1. What is the size of 1 Char?
Question 2. 1 class cannot be declared in mode
Question 3. Results after compiling int a code = 3.5
Question 4. Result when compiling int a1 = 5; double a2 = (float) a1
Question 5. The result after compiling int a = 9/0 code
Compilatinon error: The division calculation must be in the try syntax
Compilation error: DivideByZeroException
No Error: The result is NaN
Question 6. Result after compiling code: float a = 9/0
Compilation error: The division calculation must be in the try syntax
Compilation error: DivideByZeroException
No Error: The result is NaN
Question 7. 1 Class can work in transient - transient mode
public static void main (String [] args) {System.out.println ('b is' + b);}}
}} class B extends A {}
Question 10. Results after compiling code: class A {public static void main (String [] args) {A a = new B ();}} class B extends A {}
Question 11. Structured, protected syntax can be called in any subclass of that class
Question 12. A abstract class can use the syntax of non - abstract
Question 13. Java keywords are declared in lowercase as well as in capital letters
Question 14. What is the instanceof concept?
Is the structure, command syntax in 1 object
Is the operator structure and keywords
Question 15. Primitive datatype is allocated based on stack
Question 16. Can compare boolean value with integer
Question 17. If class A works with the interface part, it must implement all the interfaces of that interface
No, unless that class A is abstract
Verse 18. Integer a = new Integer (2); Integer b = new Integer (2). What happens if we apply if (a == b) syntax?
Question 19. Does wait (), notify () and notifyAll () structure in an object need to be called from the synchronized code?
Question 20. The Inner class can be initialized within the building blocks
Question 21. Synchronized is a keyword used to Thread choose any object that has been locked before continuing to execute the command
Question 22. The default switch syntax is always executed
Question 23. How to prevent 1 variable - variable becomes serialized - has serial capability