| Back to Questions Page |
| |
| Question |
What is a default package ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | java.lang  |
| Niranjanravi |
| |
| |
| Answer | A default package is the package which is included
automatically when the class is created. One such example is
java.lang package.  |
| Nithya |
| |
| |
| Answer | java.lang  |
| Ravikiran(aptech Mumbai) |
| |
| |
|
|
| |
| Answer | The default java package is java.lang  |
| Praveen |
| |
| |
| Question |
What is a compilation unit? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | a compilation unit resides on the jvm to convert the source
code into byte code after successful debugging  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
How many methods does cloneable interface contains? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It is not having any method because it is a TAGGED OR
MARKER interface.  |
| Janet |
| |
| |
| Answer | no methods  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
What is cloneable interface? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Cloneable interface is a marker interface which doesn't
have any methods in it.  |
| Niranjanravi |
| |
| |
| Answer | cloneable interface is a marked interface or tagged
interface
that means cloneable interface having no methods but it
can hold the information.  |
| Ramanareddy333 |
| |
| |
| Answer | it's a marker interface  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
What is a Java package and how is it used? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Package is a separate naming context for the group of
classes and interfaces.It provides a high level layer of
access protection and name space management.Packages can
have access specifiers.  |
| Guest |
| |
| |
| Question |
What is Remote Interface ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ CTS |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Remote interface is an interface which can be implemented
by remote objects  |
| Satya |
| |
| |
| Answer | remote interface contains the remote methods  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
What is an Exception ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | An Exception is a mild error conditon that your program
encounters.An Exception can be caught and recoverable.  |
| Niranjanravi |
| |
| |
| Answer | An Exception is logical error.An exception is an event,
which occurs during the execution of a program, that
disrupts the normal flow of the program's instructions.
when an exception is occur the program is teriminated
suddenly. using Try , Catch,finally block to avoid the
exception  |
| Ramanareddy333 |
| |
| |
| Answer | abnormal conditions arise in a program called Exception  |
| Gopalramana |
| |
| |
| Answer | An Exeception is an object that contain the information
about what went wrong  |
| Jyothi |
| |
| |
| Answer | exception is an abnormal condition occurs during runtime.  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
What is constructor and virtual function? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Constructor is a special kind of method used to initialize
an object.  |
| Niranjanravi |
| |
| |
| Answer | constructor is special member function whose purpose to
initialize the class member variables.  |
| Raj |
| |
| |
| Answer | constructor name is of the class name which has no return
type and is used o initialize during instantiation of class.
virtual function is the function called t runtime  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Answer | this is all fucking things in oop nd we dont like this kind
of activites nd this is my pins  |
| Lun |
| |
| |
| Question |
What is Connection pooling? Explain Pros and Cons? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Connection pooling is the process of resuing the database
connections between application and the server to increase
in the perfaomance of the application.  |
| Niranjanravi |
| |
| |
| Question |
What is AppletStub? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | AppletStub is the java.applet interface . This interface is
used to implement an applet viewer. It is not normally used
by applet programmers.  |
| Shweta Sharma |
| |
| |
| Question |
What happens when you assigned a 'double' value to
a 'String'? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | result is a string  |
| Niranjanravi |
| |
| |
| Answer | compilation fails
double d=10.5;
String f=(String)(10.5);
will work  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
What happens if an exception is not caught? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | results in the termination of the program  |
| Niranjanravi |
| |
| |
| Answer | Run time error  |
| Syed Mustafa |
| |
| |
| Answer | The programme will terminate abnormally and then default
exception handler will handle the exception.  |
| Sandeep |
| |
| |
| Answer | The default exception handler will print the stack trace  |
| Ravikiran |
| |
| |
|
| |
|
Back to Questions Page |