Java Programming Fundamentals
Test your knowledge of Java programming concepts including exceptions, inner classes, abstract classes, and EJB components.
Questions
An exception can be caught by a catch block with an argument type that is a superclass of the thrown exception.
- True
- False
a method cannot be declared as throwing more than one exception.
- True
- False
can you have a final abstract class?
- True
- False
an abstract class can have a constructor?
- True
- False
It is legal to access a static method using an instance of the class?
- True
- False
assuming all variables are declared and initialized properly this will compile. for(i=l; k< 5; j++){};
- True
- False
EJB stands for ....
- Enterprise Java Bean
- Enter Java Bean
- Exceptional Java Bean
- Event Java Bean
It is not possible to have an instance of a non-static inner class before any instances of the outer class have been created.
- True
- False
If method A declares that it throws an exception and method B calls method A,then method B must ALWAYS declare the same exception.
- True
- False
This is legal. float f = 2;
- Yes
- No
- Compile error
- Don't know
Static variables are implicitly final.
- True
- False