eQuiz - Multiple choice quiz about JAVA
- Question 1. What is the size of 1 Char?
- 4 bit
- 7 bit
- 8 bit
- 16 bit
-
- Question 2. 1 class cannot be declared in mode
- Static
- private
- Default
-
- Question 3. Results after compiling int a code = 3.5
- Lỗi compilation
- Runtime error
- 3.5
- 3
-
- Question 4. Result when compiling int a1 = 5; double a2 = (float) a1
- Lỗi compilation
- Runtime error
- Không lỗi
-
- 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
- Runtime Exception
- 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
- Runtime Exception
- No Error: The result is NaN
-
- Question 7. 1 Class can work in transient - transient mode
- It's correct
- False
-
- public static void main (String [] args) {System.out.println ('b is' + b);}}
- Lỗi compilation
- Runtime Error
- Runtime Exception
- The result of b is 1
-
- }} class B extends A {}
- Lỗi compile
- Runtime Exception
- Không lỗi
-
- Question 10. Results after compiling code: class A {public static void main (String [] args) {A a = new B ();}} class B extends A {}
- Error compiler
- Runtime Exception
- Không lỗi
-
- Question 11. Structured, protected syntax can be called in any subclass of that class
- It's correct
- False
-
- Question 12. A abstract class can use the syntax of non - abstract
- It's correct
- False
-
- Question 13. Java keywords are declared in lowercase as well as in capital letters
- It's correct
- False
-
- 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
- It's correct
- False
-
- Question 16. Can compare boolean value with integer
- It's correct
- False
-
- Question 17. If class A works with the interface part, it must implement all the interfaces of that interface
- Yes, always like that
- 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?
- Error compiler
- Runtime Exception
- It's correct
- False
-
- Question 19. Does wait (), notify () and notifyAll () structure in an object need to be called from the synchronized code?
- It's correct
- False
-
- Question 20. The Inner class can be initialized within the building blocks
- It's correct
- False
-
- Question 21. Synchronized is a keyword used to Thread choose any object that has been locked before continuing to execute the command
- It's correct
- False
-
- Question 22. The default switch syntax is always executed
- It's correct
- False
-
- Question 23. How to prevent 1 variable - variable becomes serialized - has serial capability
- Marked as private
- Marked as volatile
- Marked as transient
- It is impossible to do
-
4 ★ | 2 Vote
You should read it
- Test on JAVA test P5
- Download and install Java on the computer
- JAVA test on P6
- JAVA test on P4
- Basic Java exercises, with sample decoding
- Which career Java programming options are waiting for you?
- What is JAVA file? How to open, edit and convert JAVA files
- eQuiz - Multiple choice test on Java Swing Practice - Part 2
May be interested
- eQuiz - Quiz on Core Java - Part 2in the quiz below, you will be able to try out part 2 of the series related to core java - one of the most popular programming languages today. in total, the test will have 15 questions in the form of multiple choice, with an unlimited response time ...
- eQuiz - Multiple choice test on JDBC - Part 1in the quiz below, we will introduce you to part 1 of the jdbc basic knowledge test series with 15 questions.
- eQuiz - Multiple choice test on PHP Practice - part 1in the quiz below, we will introduce you to part 1 of the test series of basic knowledge about php practive with 15 questions.
- eQuiz - Test of SEO (Search Engine Optimization) - Part 2in the multiple-choice test below, you will have the opportunity to challenge 10 quiz questions about basic knowledge related to seo, there will be more questions and answers and time to answer. each sentence is not limited.
- eQuiz - Multiple choice test on ASP (Active Server Pages) Advance - Part 1welcome to the test series of tipsmake.com with topics related to the fields of information technology.
- eQuiz - Multiple choice test on ASP (Active Server Pages) Advance - Part 2we will continue with the next test on the advance asp web programming language, in total there will be 15 questions with no time to answer each sentence.