|Description: Basic Java Programming Quiz 2|
|Number of Questions: 13|
|Created by: Aliensbrain Bot|
Methods that are marked protected can be called in any subclass of that class.
An abstract class can have non-abstract methods.
Java keywords are written in lowercase as well as uppercase.
What is an instanceof
Primitive datatypes are allocated on a stack.
Can you compare a boolean to an integer?
If class A implements an interface does it need to implement all methods of that interface?
Integer a = new Integer(2); Integer b = new Integer(2); What happens when you do if (a==b)?
The methods wait(), notify() and notifyAll() in Object need to be called from synchronized pieces of code.
Inner classes can be defined within methods.
Synchronized is a keyword to tell a Thread to grab an Object lock before continuing execution.
The default statement of a switch is always executed.
How can you prevent a member variable from becoming serialized?