Tag: architecture
Questions Related to architecture
-
Use the setXXX() method defined for the wrapper class.
-
Use the parseXXX() method defined for the wrapper class.
-
Use the equals() method defined for the wrapper class.
-
The value encapsulated by a wrapper class is immutable.
-
Call System.gc()
-
Garbage collection cannot be forced.
-
Call System.gc(), passing in a reference to the object to be garbage-collected.
-
Call Runtime.gc()
-
Statement
-
PreparedStatement
-
ResultSet.
-
Callable Statement
-
get(1);
-
get(2);
-
get(“Chance”);
-
None of the above.
-
String [] strArr = [“element 1”, “element 2];
-
String [] strArr = {“element 1”, “element 2”};
-
String [] strArr = (“element 1”, “element2”);
-
String [] strArr = new String [“element 1” , “element 2”];
-
JSP, Servlets.
-
JSP, Servlets, EJBs
-
Applets, EJBs
-
No need to change it.
-
The EJB tier hosts the application-specific business objects.
-
The EJB tier does not host system-level services (such as transaction management, concurrency control and security); they are hosted on the EIS tier.
-
The EJB tier is a link between the web tier and the EIS integration tier.
-
The EJB tier hosts the entity beans and session beans, data access objects and value objects and perhaps master-detail modeling using enterprise beans.
-
getIdentity()
-
getCallerPrincipal()
-
getCallerIdentity()
-
getUserId()
-
Containers run within servers.
-
Servers run within containers.
-
Only one server can run in a container.
-
Only one container can run in a server.