Java - Quiz

42 Questions | Attempts: 300
Please wait...
Question 1 / 43
🏆 Rank #--
Score 0/100

1. What is Java (in regard to Computer Science) ?

Submit
Please wait...
About This Quiz
Java - Quiz - Quiz

Test your Java Skills.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. WHAT IS AN APPLET?

Submit

3. What is a function in terms of Computer Science ?

Submit

4. Java runs on _______.

Submit

5.  If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two Boolean statements ?

Submit

6.  What is a loop ?

Submit

7. What does AWT stands for ?

Submit

8.  Booleans are _______.

Submit

9. Following code will result in: int a = 3.5;

Submit

10. Synchronized is a keyword to tell a Thread to grab an Object lock before continuing execution.

Submit

11. What is the main function of any variable ?

Submit

12. What is an assignment statement ?

Submit

13. An abstract class can have non-abstract methods

Submit

14. Primitive datatypes are allocated on a stack

Submit

15. Methods that are marked protected can be called in any subclass of that class.

Submit

16. What is the proper way to declare a variable ?

Submit

17. What's the difference between an Applet and an application ?

Submit

18. Inner classes can be defined within methods

Submit

19. What is essential in making sure that your loop is not infinite ?

Submit

20. The methods wait(), notify() and notifyAll() in Object need to be called from synchronized pieces of code.

Submit

21. Following code will result in: float a = 9/0

Submit

22. How can you prevent a member variable from becoming serialized?

Submit

23. Which of the following means that in order for the conditional to happen, either x must be less than 3 or y must be greater than or equal to 4 ?

Submit

24.  Following code will result in: int a = 9/0;

Submit

25. Following code will result in: class A { int b = 1; public static void main(String [] args) { System.out.println("b is " + b); }}

Submit

26. In a 'for' loop, what section of the loop is not included in the parentheses after "for" ?

Submit

27. What is an instanceof

Submit

28.  A class cannot be declared

Submit

29. If class A implements an interface does it need to implement all methods of that interface?

Submit

30. What is the size of a Char?

Submit

31. Can you compare a boolean to an integer?

Submit

32. Which is NOT a section of all types of loops ?

Submit

33. Following code will result in: int a1 = 5; double a2 = (float)a1;

Submit

34. Following code will result in: class A { public static void main(String [] args) {A a = new B(); }} class B extends A {}

Submit

35. Why can't the whole program just consist of the one line that does the painting ?

Submit

36. Java keywords are written in lowercase as well as uppercase

Submit

37. A class can be transient

Submit

38. What will be the value of "num" after the following statements?

Submit

39. The following statements make "length" be what number ?

Submit

40. Integer a = new Integer(2); Integer b = new Integer(2); What happens when you do if (a==b)?

Submit

41. Following code will result in: class A { public static void main(String [] args) {A a = new B(); }} class B extends A {}

Submit

42. The default statement of a switch is always executed

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (42)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is Java (in regard to Computer Science) ?
WHAT IS AN APPLET?
What is a function in terms of Computer Science ?
Java runs on _______.
 If you want your conditional to depend on two conditions BOTH...
 What is a loop ?
What does AWT stands for ?
 Booleans are _______.
Following code will result in: int a = 3.5;
Synchronized is a keyword to tell a Thread to grab an Object lock...
What is the main function of any variable ?
What is an assignment statement ?
An abstract class can have non-abstract methods
Primitive datatypes are allocated on a stack
Methods that are marked protected can be called in any subclass of...
What is the proper way to declare a variable ?
What's the difference between an Applet and an application ?
Inner classes can be defined within methods
What is essential in making sure that your loop is not infinite ?
The methods wait(), notify() and notifyAll() in Object need to be...
Following code will result in: float a = 9/0
How can you prevent a member variable from becoming serialized?
Which of the following means that in order for the conditional to...
 Following code will result in: int a = 9/0;
Following code will result in: class A { int b = 1; public static void...
In a 'for' loop, what section of the loop is not included in the...
What is an instanceof
 A class cannot be declared
If class A implements an interface does it need to implement all...
What is the size of a Char?
Can you compare a boolean to an integer?
Which is NOT a section of all types of loops ?
Following code will result in: int a1 = 5; double a2 = (float)a1;
Following code will result in: class A { public static void...
Why can't the whole program just consist of the one line that does...
Java keywords are written in lowercase as well as uppercase
A class can be transient
What will be the value of "num" after the following statements?
The following statements make "length" be what number ?
Integer a = new Integer(2); Integer b = new Integer(2); What happens...
Following code will result in: class A { public static void...
The default statement of a switch is always executed
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!