| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is deadlock and how to avoid this? | | 2 |
| What is an Iterator interface? | | 2 |
| What is the difference between getCodeBase and
getDocumentBase methods? | | 1 |
| What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class? | | 5 |
| what is the difference between AWT and SWING what is the
advantage of using swing? | | 3 |
| How do u provide security in java | | 1 |
| What are E and PI? | | 1 |
| whats is inheritance? | HCL | 14 |
| long d =10;int i =0;i=d; /// is this possible? If d is very
long number (10 digits or some thing) then? | | 3 |
| Can we have a abstract class withought any method? What is a
purspose of this? | | 1 |
| What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution? | | 2 |
| Can we declare an anonymous class as both extending a class
and implementing an interface? | Wipro | 7 |
| Where the CardLayout is used? | | 1 |
| 1).Is Object class abstract or not?
2).Is main method(public static void main(String args[])low
priority thread or high priority thread?
| TCS | 2 |
| Can a double value be cast to a byte? | | 3 |
| What is Vector?Can you elaborate how Vector is Thread safe? | | 3 |
| What is the purpose of setAutoCommit() ? | Google | 1 |
| if two references are having same hash codes,is that means
those are refering to same object? | CTS | 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 HashTable? | | 3 |
| |
| For more Core Java Interview Questions Click Here |