| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Q) I have a ArrayList object, in that object i have added 5
integer values, 5 float values, 5 string values. Now
question is how can delete particular type of data ( i.e all
int values or all float values or string values) in that
list object at a time? | Aricent | 2 |
| what is difference between String buffer and String builder? | Benchmark | 2 |
| What is the immediate superclass of the Dialog class? | | 1 |
| 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 |
| What are init(), start() methods and whey they are called? | | 2 |
| What is means by DLL file means ?
What is the use of DLL file?
What are the contents of DLL file? | | 2 |
| what is meant by UP& DOWN casting in java? | | 4 |
| How do you load an HTML page from an Applet ? | | 2 |
| 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 |
| 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 are the Object and Class that classes used for? | | 3 |
| What is Vector?Can you elaborate how Vector is Thread safe? | | 3 |
| can we create a instance for intwerface? | | 3 |
| Difference between local and global transaction ? | iFlex | 1 |
| What is the default initialized value of a boolean type
variable? | | 3 |
| Java support what type of parameter passing ? | Wipro | 6 |
| Explain in detail about encapsulation with an example? | | 3 |
| String is a immutable objects . it means that string does
not change...........
But it will be chang.........
{
String s="kapil";
String s1="raj";
String s=s1;
then print(.......)
The String has been changed ..
how it is possible and why its called immutable objects | | 3 |
| why Runnable interface is preferable than extending the
Thread class? | Wipro | 5 |
| what is bytecode ?explain in detail and watz the difference
between bytecode and machine code? | Lucent | 3 |
| |
| For more Core Java Interview Questions Click Here |