ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Java-Related >> Java-J2EE >> Core-Java
 
 


 

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.
 
0
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++.
 
0
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();
 
0
Prabir Kumar
 
 
 
Answer
Automatically deletes unused memory
 
0
Sub
 
 
Answer
JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.
 
0
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.
 
0
Niranjanravi
 
 
Answer
checked exceptions
 
0
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.
 
0
Niranjanravi
 
 
Answer
wreapper classes will allow the primitive types to act like
objects
 
0
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.
 
0
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.
 
0
Guest
 
 
Answer
wrapper classes are those who wrapped the primitives one for
sprcific purposes.
 
0
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.
 
0
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.
 
0
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.
 
5
Janet
 
 
Answer
java.util.EventObject---java.awt.awtevent....
 
0
Chandrarekha
 
 
Answer
container
 
0
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
 
0
Akhil
 
 
Answer
component
 
0
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.
 
0
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.
 
0
Divya
 
 
Answer
wrapper class is nothing but converting primtivedatatype 
into objects
 
0
Prasad
 
 
Answer
wrapper classes will allow us to make use of primitive
datatypes as objects
 
0
Ravikiran
 
 
Answer
Wrapped classes are classes that allow primitive types to 
be accessed as objects.
 
0
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
 
0
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.
 
0
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.
 
0
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.
 
0
Ravichandra
 
 
Answer
1.local applets:these applets are run within the browser.

2.remote applets:these appltes are run on the internet.
 
0
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.
 
0
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
 
0
Niranjanravi
 
 
Answer
standalone applications
webapplications
enterprise applications
 
0
Ravikiran(aptech Mumbai)
 
 
Answer
1.Console Application
2.Windows Application/Standalone Application
3.Web Application
4.Mobile Application
 
0
Nirmal Anandh.m
 
 
Answer
1. Window application
2. Console Application
3. Web application
4. Web services
5. Window services
 
0
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
 
0
Niranjanravi
 
 
Answer
required
requiresnew
mandatory
supports
notsupported

 
0
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
 
1
Niranjanravi
 
 
Answer
using try catch
using throws for delegation of exceptions
using throw to define an exception
 
0
Ravikiran(aptech Mumbai)
 
 
Answer
we can handle exception by using
try
catch
finally
throw
throws.
 
0
Kabita
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com