This quiz contains questions targeted to assess knowledge of a wide range of topics. Knowledge areas include architecture, design and Java language specifics.
Since ABC will not let CORBA requests through, PSI should continue sending faxes.
PSI should take its business away to ABC's competitors.
PSI should use the popular SOAP protocol since SOAP requests communicate over HTTP.
PSI should use a concept called HTTP tunneling to communicate with ABC.
Factory Method
Prototype
Builder
Abstract Factory
Singleton
Command
Bridge
Facade
Adapter
Decorator
D, E, & G
A, D, E & H
A, B, E & H
B, E, F & G
A Only
A & C
C Only
None of the Above
A & D
A & B
C & D
B & D
The applet technology is not viable because the sandbox model prevents them from reading or writing to the host where they are executed.
The applet technology is a viable solution because the security policy of the Java 2 Platform is totally flexible.
A specified node, which is then re-distributed to all subscribers.
A designated queue.
Directly to all subscribers in the Topic subscription list.
A component transaction monitor such as an EJB Server for further processing by a message driven bean.
Splitting requests evenly amongst all back end servers.
The proxy sits behind the backend servers monitoring the performance of each one. When it notices one is being used too much it will automatically forward requests to a different server.
Time each server has available.
A technique used to target certain requests to certain backend servers, e.g. All Servlet requests from one server and all static HTML from another.
Wrap the application using JNI and make it accessible using RMI.
Rewrite the FoxPro code in Java. This shouldn't be too hard because it's converting from one object-orientated language to another.
Use a screen scraper.
Use CORBA to talk to the FoxPro program then get the CORBA to talk to the RMI server.
Garbage collection cannot be forced.
Call System.gc().
Call System.gc() passing in a reference to the object to be garbage collected.
Call Runtime.gc().
Set all references to the object to new values(null, for example).
Float aMethod(float a, float b){}
Public int aMethod(int a, int b) throws Exception{ }
Public float aMethod(float a, float b) throws Exception{ }
Public float aMethod(float p, float q){ }
True
False
Set
List
Tree
SortedMap
ArrayList
0
1
2
3
Public static String getPostCode();
Public abstract String getName();
Private String getAverageHousePrice();
Public void setPostCode(String s) { System.out.print(s); }
SupEx s = new Super();
Super s = new SupEx();
SupEx s = new SupEx();
Super s = new Super();
A try clause must have a matching catch and finally clause
A try clause can be used without a matching finally or catch clause
A try clause can be used with a matching finally clause and no catch clause
A try clause may be declared as public or private but not protected.
Compilation and output of 1
Compile time error
Compilation and output of 99
Compilation but runtime error
Compile time error, a constructor cannot be marked as private
Compilation and output of "One"
Compilation and output of "Three"
Compilation, but runtime error.
The abstract modifier may be applied to classes, methods and primitives
The abstract modifier may be applied to classes but not methods
A non abstract class that extends an abstract class must implement all the abstract methods of the inherited class
The abstract modifier may be applied to both classes and methods
Compile time error, class Wmid may not be marked as protected
Compile time error, a constructor may not be marked as private
Compilation and output of Wmid
Compilation but no output
It does not permit null values
It does not permit null keys
It stores information as key/value pairs
Elements are returned in the order they were added
The idea of threading is the same as multi tasking.
No two threads can access the same variables
Using synchronization within code may cause a performance penalty at runtime.
The use of threads within a program may make the exact path of execution unpredicatble
Interface methods cannot be static
Interface methods must have a return type of void
An interface cannot extend another class
An interface method cannot be marked as final
Compile time error the & operator can only take boolean values
Compilation and output of 240
Compilation and output of 120
Compilation and output of 122
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.