| 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  |
| 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  |
| 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  |
| Debapriya Patra |
| |
| |
|
|
| |
| Answer | Object  |
| 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.  |
| 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.  |
| 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.  |
| Selvan |
| |
| |
| Answer | Which one will not allow duplicates, is it HashMap or
HashTable? Please explain the corect answer with an
example. Thanks in advance  |
| Venkatesh |
| |
| |
| Answer | HashSet  |
| 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  |
| 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.  |
| Neeti |
| |
| |
| Answer | hashset,treeset....these classes don't allow the duplicate
values.  |
| 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  |
| 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  |
| 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  |
| Sham |
| |
| |
| Answer | modulus and division  |
| 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  |
| 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  |
| Niranjanravi |
| |
| |
| Answer | abs()  |
| 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  |
| 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()  |
| 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.  |
| 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)  |
| Ranganathkini |
| |
| |
| Answer | Hi guys
This is Muruga from chennai.
I heared new meaning for Java
J Just
A Another
V Virus
A Architecture  |
| Muruga |
| |
| |
| Answer | java is a place where developers used to import coffee
while developing the language.previously it is named oak  |
| Ravikiran |
| |
| |
| Answer | JAVA stands for jamesgosling ,arthur Iknow only two names u
find remaining two answers i dont'kow that  |
| 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.  |
| 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  |
| 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  |
| Raghuveer |
| |
| |
| Answer | The exceptions that can be caught while opening a file are:
1. FileNotFoundException
2. SecurityException  |
| Ranganathkini |
| |
| |
| Answer | file not found  |
| Ravikiran |
| |
| |
|
| |
|
Back to Questions Page |