Free Jobs
Reference




Java 6 Interview Questions Answers

For more advanced and tough Java 6 Interview Questions Click Here



Q1. What is the difference between static and dynamic class loading in java 6.
static class loading in java 6 means loading a class with new operator as below:
List mylist = new ArrayList();
Dynamic loading class loading in java means
invoking the functions of a class loader at run time as below:
List myList = (List)class.forName(sampleClassName).newInstance();

Q2. What is primordial or bootstrap class loader in java and its use
Primordial or bootstrap class loader in java is a special Class loader
that is embedded within the JVM or Java Virtual Machine.
it is used to load JDK internal classes and java.* packages.
primordial or bootstrap class loader in java is not reloadable.

Q3. same singleton class loaded by different class loader is equal true or false
False.same singleton class loaded by different class loader is not equal.
Because Two objects loaded by different class loaders are not equal

Q4. What is RMI or Remote Method Invocation in the context of distributed java applications
RMI in the context of distributed java applications is an API(Application Programming Interface)
that allows us to invoke a method on an object existing in another address space that
may or may not be on the same machine.
In other words RMI is an object-oriented Implementation of RPC(Remote procedure call).


Q5. What is the difference between Socket and ServerSocket class in java.net package
Socket class is used as an end point for client side of the connection
and the ServerSocket class is used as an end point of
server side of the connection, respectively.


Q6. What is RPC or Remote Procedure call in java distributed programming
In java distributed programming RPC or Remote Procedure call
can be seen as inter process communication API that is used to call a procedure
in another address space mainly on another computer on a shared network.
RMI or Remote method Invocation is Object oriented Implementation of RPC or Remote Procedure call.

Q7. What is the difference between soap and RMI or Remote method Invokation
RMI or Remote Method Invocation can be used to to talk with another Java
application while Soap can be used to to talk to applications written
in any language including java.

Q8. Which implementation for distributed application is slower Soap or sockets
SOAP implementation for distributed application is slower then plain sockets.


Q9.What is the difference between RMI or Remote Method Invocation and Sockets in java 6
RMI or Remote Method Invocation can be used to to talk with another Java
application while sockets can be used to to talk to applications written
in any language including java.
RMI is good for interaction involving small size of data
Sockets is good for interaction involving large size of data .

Q10. What is the similarity and difference between RMI and CORBA
similarity:
Both RMI(Remote Method Invocation) and CORBA
is another object-oriented RPC mechanism for RPC or Remote Procedure call

Differences:
RMI is a language dependent standard but CORBA language independent standard.
CORBA has a standard for TP monitors but Java RMI does not have it.



For more advanced and tough Java 6 Interview Questions Click Here












www.freejobsreference.com Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)