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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Java-Related >> Java-J2EE >> Core-Java
 
 


 

Back to Questions Page
 
Question
Name the immediate superclass of the MenuComponent class?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
OBJECT CLASS
 
0
Pkr_reddy
 
 
Question
Which class is the immediate superclass of the Container 
class?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
java.awt.Compoent
 
0
Narasimha
 
 
Question
Which class is extended by all other classes?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Everybody Knows abt the answer.Bcz its a very easy
question."Object" class is the super class of each and every
class.Sp by default every class extends the "Object" class
 
0
Debapriya Patra
 
 
 
Answer
Object
 
0
Ravikiran
 
 
Question
Which class has no duplicate elements?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The java.util.Set interface and related implementations dont
support duplicate elements.
 
5
Ranganathkini
 
 
Answer
in java .util package there is one interface (set interface)
that interface does not allows the duplicate values.that 
interface implementations class are 
hashset,treeset....these classes don't allow the duplicate 
values.
 
0
Ramanareddy333
 
 
Answer
java.util.Set Packages, there is no dulicate elements.Bcoz 
these interfaces doesn't allows the dulicate values or 
elements. For example. HashMap, HashSet, TreeSet and so on.
 
0
Selvan
 
 
Answer
Which one will not allow duplicates, is it HashMap or 
HashTable? Please explain the corect answer with an 
example. Thanks in advance
 
3
Venkatesh
 
 
Answer
HashSet
 
0
Ravikiran
 
 
Answer
set wont allow duplicate element all the classes implementin
set interface wont allow for eg HashSet TreeSet
Hash map will allow for two different key u can have same value
 
0
Shweta
 
 
Answer
the set inteface does'nt allow duplicate 
elements.therefore,the add() method return false if an 
attempt is made to add duplicate elements to a set.
 
0
Neeti
 
 
Answer
hashset,treeset....these classes don't allow the duplicate 
values.
 
0
Rajesh
 
 
Question
Which characters are allowed to use as the second character 
of an identifier, and which characters are not allowed?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The following are the attributes of the character that is
part of a Java identifier but not as the first character:

    * it is a letter
    * it is a currency symbol (such as '$')
    * it is a connecting punctuation character (such as '_')
    * it is a digit
    * it is a numeric letter (such as a Roman numeral character)
    * it is a combining mark
    * it is a non-spacing mark
 
0
Ranganathkini
 
 
Answer
The Second letter may be
    Alphabetic letters - a to z ot A to Z
    Numerals - 0 to 9
    Only special character  $,_  and Euro currency symbols
 
0
Vijayakumar Chinnasamy
 
 
Question
In what types of operations an ArithmeticException will be 
thrown?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
ans:division by zero
 
0
Sham
 
 
Answer
modulus and division
 
0
Ravikiran
 
 
Question
Name the method that is used to set a TextComponent to the 
read-only state?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The setEditable( boolean b ) is used to set a TextComponent
to a read-only state
 
0
Ranganathkini
 
 
Question
What is the method used to get the absolute value of a 
number?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
abs() method
 
0
Niranjanravi
 
 
Answer
abs()
 
0
Ravikiran
 
 
Question
Which Java operator is right associative?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
= i.e assignment operator
 
0
Poonam
 
 
Question
Name the method of a Container that can be used to cause a 
container to be laid out and redisplayed?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
validate()
 
0
Niranjanravi
 
 
Question
Where the CardLayout is used?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
card layout is uniq in all other layout managers .
it stores several diff layouts.it is useful to user to
select the optional components  that can be dynamically
enabled or disabled.
 
          we can select the layout managers by clicking the
button and we can move from front and bak through index.
 
0
Pkr_reddy
 
 
Question
How 'java' got its name and what it stands for?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
"Java" is supposed to have got its name from one of the
members of the original developer team Kim Polese. But it is
widely believed that Java (originally called "Oak") was
concieved by the original creators at a local coffee bar.

To credit this incident, the creators used a magic number as
a header to all the Java bytecode class file. The number:
0xCAFEBABE

here is a link if u want to know more:
http://en.wikipedia.org/wiki/Class_(file_format)
 
0
Ranganathkini
 
 
Answer
Hi guys

   This is Muruga from chennai.

I heared new meaning for Java

    J   Just
    A   Another
    V   Virus
    A   Architecture
 
1
Muruga
 
 
Answer
java is a place where developers used to import coffee 
while developing the language.previously it is named oak
 
0
Ravikiran
 
 
Answer
JAVA stands for jamesgosling ,arthur Iknow only two names u
find remaining two answers i dont'kow that
 
0
Naresh
 
 
Answer
JAVA name was actually given by "james gosling". first they 
decided 2 name as "OAK" but it was cross down by trademark 
lawyer.
 
0
Bhavana
 
 
Question
What methods are called, When we navigate from one applet 
to another applet?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
appletcontext()method
 
0
Ravichandra
 
 
Question
While opening the file, what type of exceptions can be 
caught?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
FileNotFound Exception
 
0
Raghuveer
 
 
Answer
The exceptions that can be caught while opening a file are:

1. FileNotFoundException
2. SecurityException
 
0
Ranganathkini
 
 
Answer
file not found
 
0
Ravikiran
 
 
 
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