Tag: technology
Questions Related to technology
-
Compilation fails
-
An exception is thrown at runtime.
-
An instance of Forest is serialized.
-
An instance of Forest and an instance of Tree are both serialized
-
restore 400
-
restore 403
-
restore 453
-
Compilation fails.
-
An exception is thrown at runtime
-
This code is NOT thread-safe
-
The programmer can replace StringBuffer with StringBuilder with no other changes
-
This code will perform poorly. For better performance, the code should be rewritten:return "";
-
This code will perform well and converting the code to use StringBuilder will not enhance the performance
-
It can be any class
-
No class has access to base
-
The class must belong to the geometry package
-
The class must be a subclass of the class Hypotenuse
-
Inheritance represents an is-a relationship
-
Inheritance represents a has-a relationship
-
Interfaces must be used when creating a has-a relationship
-
Instance variables can be used when creating a has-a relationship.
-
Hello
-
Hello World
-
Compilation fails
-
Hello World 5
-
The code runs with no output.
-
An exception is thrown at runtime
-
Compilation fails because of an error in line 3
-
Compilation fails because of an error in line 7
-
Compilation fails because of an error in line 9
-
If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line 5.
-
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 5.
-
If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.
-
foofoofoofoofoo
-
foobarfoobarbar
-
foobarfoofoofoo
-
foobarfoobarfoo
-
barbarbarbarbar
-
foofoofoobarbar