Home > BCA > Quizzes > Core Java
Core Java
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 22% Most missed: “Which of these statement is correct?”
Core Java
Time left 00:00
25 Questions

1. What is the value stored in x in following lines of code? int x, y, z; x = 0; y = 1; x = y = z = 8;
2. Which of these is correct way of calling a constructor having no parameters, of superclass A by subclass B?
3. Which of these literals can be contained in a data type float variable?
4. Decrement operator, –, decreases value of variable by what number?
5. Which of these statements are incorrect?
6. What is the stored in the object obj in following lines of code?box obj;
7. Which of these is necessary condition for automatic type conversion in Java?
8. What is the numerical range of a char in Java?
9. Which operator is used to invert all the digits in binary representation of a number?
10. What is the order of precedence (highest to lowest) of following operators? 1. & 2. ^ 3. ?:
11. What is the return type of Constructors?
12. What is the range of data type byte in Java?
13. Which of the following can be operands of arithmetic operators?
14. Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?
15. Which of these method of String class is used to obtain character at specified index?
16. Which of these can not be used for a variable name in Java?
17. What is the process of defining a method in terms of itself, that is a method that calls itself?
18. Which of the following are legal lines of Java code? 1. int w = (int)888.8; "2. byte x = (byte)100L; "3. long y = (byte)100; "4. byte z = (byte)100L;"
19. Which of these values can a boolean variable contain?
20. What is the range of data type short in Java?
21. Which of these statements are incorrect?
22. Which of these is an incorrect Statement?
23. class member declared protected becomes member of subclass of which type?
24. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?
25. Which of these method of String class can be used to test to strings for equality?