| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a class to input 2 points by the user & check the line
maked by the points is horizontal,vertical or rectangle? | | 1 |
| WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS? | | 4 |
| What enableEvents() method do? | | 1 |
| What is meant by Encapsulation? Can you write a class to
explain encapsulation? | Ness-Technologies | 8 |
| Is there is any error if you have multiple main methods in
the same class? | Wipro | 9 |
| Who developed JScript language? | | 3 |
| What is difference between hash mapping and hash table? | NDS | 3 |
| explain about jre and jvm | | 2 |
| What is the root class for all Java classes? | | 4 |
| class A{
m2(){
}
}
class B extends A{
m2(){
}
}
class c extends B{
m2(){
}
}
class my_class extends c{
m2(){
}
pulic static void main(){
...My_class a = new my_class();
super.super.super.m2(); is this is leagal
if not find what is the legal procedure in order to call A's
version of m2();
}
| Logica-CMG | 8 |
| What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available? | | 4 |
| We have two methods to create methods the threads.
1. Implementing runnable interface
2. Extending to thread class and overriding run method.
Among these two which one is better and why?
Please explain me in detail. | | 2 |
| Is multiple inheritance allowed in Java? Why ? | | 5 |
| Can you call a private data from an inner class? | | 3 |
| what is main difference b/w abstract class and interface | | 3 |
| Explain the difference between scrollbar and scrollpane? | | 1 |
| methods in Applet? | | 1 |
| what are depricated methods ? | Satyam | 4 |
| When try and catch block is used ? | | 6 |
| Can try statements be nested? | Wipro | 2 |
| |
| For more Core Java Interview Questions Click Here |