| Back to Questions Page |
| |
| Question |
What is the specification of ?CODEBASE? in an applet? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | When the applet class file is not in the same directory
codebase is used.  |
| Niranjanravi |
| |
| |
| Question |
garbate collector(GC)? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | it's an built it procedure in java which takes place as we
are finished wid our programs,so as to nullify the already
existing objects in the file.it's as an desturctor in c++.  |
| Aditya Mohata |
| |
| |
| Answer | 1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();  |
| Prabir Kumar |
| |
| |
|
|
| |
| Answer | Automatically deletes unused memory  |
| Sub |
| |
| |
| Answer | JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.  |
| Reddy |
| |
| |
| Question |
What classes of exceptions, thrown by a throw statement? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Syntax for throw is:
throw throwableinstance;
Here the throwableinstance must be an object of type
Throwable or sub-class of Throwable.Simple types such as
int or char as well as non-Throwable types such as String
or object can't be assigned to throw.  |
| Niranjanravi |
| |
| |
| Answer | checked exceptions  |
| Ravikiran |
| |
| |
| Question |
What are wrapper classes? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Noah-Solutions , Ramu, Ramu |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | wrapper classes allow primitive data types to be accessed
as objects.Once assigned a value the value of wrapper
classes can't be changed.  |
| Niranjanravi |
| |
| |
| Answer | wreapper classes will allow the primitive types to act like
objects  |
| Ravikiran |
| |
| |
| Answer | Wrapper class : A class to enclosed(wrapped) the primitive
data type.
eg: Integer - it wrapp the int primitive data type.
Character - it wrap the chat data type.
int a=10;
Integer i=new Integer(a);
Java Wrapper class:
Integer,Byte,Short,Character,Boolean,Long,Float,Double.  |
| Vijayakumar Chinnasamy |
| |
| |
| Answer | The wrapper classes can take constructors of either the
type they are designed to wrap or of a String that can be
converted to that type. Thus the Integer class can take a
number that could be contained by an int, but an error will
occur if you try to pass a number with a floating point
component. Remember that the wrapper classes are just that
classes, they are not primitives and instances of the
wrappers can only be manipulated in the same way as any
class. You may get questions on the exam with code that
uses standard math operations to manipulate instances of
wrappers. You can of course use the + operator where it
would implicitly call the toString method, but as soon as
you see the - * or % operator, beware.  |
| Guest |
| |
| |
| Answer | wrapper classes are those who wrapped the primitives one for
sprcific purposes.  |
| Adeel |
| |
| |
| Answer | Wrapper classes are classes that are used to make primitive
data types into objects, and to make wrapped objects into
primitives because
As we know that vector in java can hold only object; but
can't directly store primitive data types, like int,float,
char, long, double. therefore we need to convert simple data
type to object. This can we done using wrapper classes.  |
| Irshad Ahmad |
| |
| |
| Question |
What classes of exceptions, caught by a catch clause? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | A catch clause can catch any exception that is assigned to
the throable type.It includes both run time errors and
exceptions.  |
| Niranjanravi |
| |
| |
| Question |
What is the top class of AWT event hierarchy? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | The java.awt.AWTEvent class is the highest-level class in
the AWT event-class hierarchy.  |
| Janet |
| |
| |
| Answer | java.util.EventObject---java.awt.awtevent....  |
| Chandrarekha |
| |
| |
| Answer | container  |
| Ravikiran |
| |
| |
| Answer | AWTEvent class is the top class of AWT event hierarchy and
all other event classes and awt event also extends from
EventObject class  |
| Akhil |
| |
| |
| Answer | component  |
| Ashish Shinkar |
| |
| |
| Question |
What are wrapped classes? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Wrapper classes allow primitive data types to be accessed
as object.
One assigned a value the value of wrapper calsses cann't be
changed.
thay are used to convert value of one data type to another.  |
| Niranjanravi |
| |
| |
| Answer | Wrapping is the process of converting primitive data type
into objects,the Java API provide a set of classes that
make the process easier ,such classes are called Wrapper
classes.The classes which helps for wrapping is called
Wrapped classes.  |
| Divya |
| |
| |
| Answer | wrapper class is nothing but converting primtivedatatype
into objects  |
| Prasad |
| |
| |
| Answer | wrapper classes will allow us to make use of primitive
datatypes as objects  |
| Ravikiran |
| |
| |
| Answer | Wrapped classes are classes that allow primitive types to
be accessed as objects.  |
| Ruban |
| |
| |
| Answer | Primitive types are not objects in Java
Many methods are available in the Java library that work
only for objects
Wrapper classes are used to represent primitive data types
as objects.
Boolean, Character, Byte, Short, Integer, Long, Float, and
Double.
Object wrappers for the corresponding native data type.
Object Oriented implementation of the primitive data types  |
| Thara |
| |
| |
| Question |
What are virtual functions? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Functions which are called at runtime are called virtual
functions.  |
| Niranjanravi |
| |
| |
| Answer | In OOP, virtual methods are those methods which can be
overridden within an inheriting class by a function with the
same signature. This concept is a very important part of the
polymorphism portion of OOP. In JAVA by default all methods
are virtual.  |
| Satendra |
| |
| |
| Question |
types of applets?. |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ TCS |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | there are two types of applets are there.
1.local applets:these applets are run within the browser.
2.remote applets:these appltes are run on the internet.  |
| Ravichandra |
| |
| |
| Answer | 1.local applets:these applets are run within the browser.
2.remote applets:these appltes are run on the internet.  |
| Dipil T T |
| |
| |
| Answer | Remember "Every APPLET act as a Browser"
and File extension os applet is .HTML
as question held types of applet it is simple.
1.LOCAL APPLET
2.REMOTE APPLET
Difference is that local applet operate in single machine
browser which is not connected in network,while remote
applet poerate over internet via network.  |
| Shridhar Shelake |
| |
| |
| Question |
What are types of Java applications? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Standalone applications
Web applications
Mobile applications  |
| Niranjanravi |
| |
| |
| Answer | standalone applications
webapplications
enterprise applications
 |
| Ravikiran(aptech Mumbai) |
| |
| |
| Answer | 1.Console Application
2.Windows Application/Standalone Application
3.Web Application
4.Mobile Application  |
| Nirmal Anandh.m |
| |
| |
| Answer | 1. Window application
2. Console Application
3. Web application
4. Web services
5. Window services  |
| Kate |
| |
| |
| Question |
transaction attributes ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | not supported,requires,required new,supports,mandatory,never  |
| Niranjanravi |
| |
| |
| Answer | required
requiresnew
mandatory
supports
notsupported
 |
| Ravikiran(aptech Mumbai) |
| |
| |
| Question |
In what ways you can handle exception ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | using try--catch--finally
using throws  |
| Niranjanravi |
| |
| |
| Answer | using try catch
using throws for delegation of exceptions
using throw to define an exception  |
| Ravikiran(aptech Mumbai) |
| |
| |
| Answer | we can handle exception by using
try
catch
finally
throw
throws.  |
| Kabita |
| |
| |
|
| |
|
Back to Questions Page |