| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Can you run the product development on all operating
systems ? | | 1 |
| what is jms? features of jms | CTS | 1 |
| Have you worked on bits programming? examples?What is bit?
How many bits are there in the byte? | | 1 |
| Default layout of Dialog object? | | 1 |
| what is request dispatcher and how does it work? | CTS | 1 |
| Name the immediate superclass of the MenuComponent class? | | 1 |
| what is the purpose of method overriding in java where v r
completely re-defining a inherited method instead y can't v
create a new method and define.If the question is very silly
plz excuse me and do reply.Thank U! | | 5 |
| What is the is a and has a relation ship in oops concept in
java? | BearingPoint | 5 |
| What is the difference between this() and super()? | TCS | 11 |
| Explain Stream Tokenizer? | | 3 |
| How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size | Accenture | 6 |
| How can final class be used? | Wipro | 2 |
| Consider that class classA, abstract class classB, and
final classC have been defined.Which one of the following
is correct?
1. classA extends classC implements classB
2. class A extends classB, classC
3. classA extends classB
4. classB implements classC | | 1 |
| Can we override static methods? | Bally-Technologies | 15 |
| How applets will communicate with each other? | | 1 |
| public class AboutStrings{
public static void main(String args[]){
String s1="hello";
String s2="hel";
String s3="lo";
String s4=s2+s3;
//to know the hash codes of s1,s4.
System.out.println(s1.hashCode());
System.out.println(s4.hashCode());
// these two s1 and s4 are having same hashcodes.
if(s1==s4){
System.out.println("s1 and s4 are same.");
}else
System.out.println("s1 and s4 are not same.");
}
}
Somebody told me that, == operator compares references of
the objects.
In the above example even though s1 and s4 are refering to
same object(having same hash codes),
it is printing s1 and s4 are not same.
Can anybody explain in detail why it is behaving like this?
Thanks in Advance
RavuriVinod
| TCS | 3 |
| when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise? | | 5 |
| What is Overriding and how can it be used? | Wipro | 5 |
| why the constructor should be used in class,if there is no
constructor what will happen? | | 4 |
| Name the package that always imported by default? | | 2 |
| |
| For more Core Java Interview Questions Click Here |