| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service | Accenture | 1 |
| What is the return type of read()? | | 2 |
| What are the parameters used in Connection pooling? | IBM | 1 |
| What is Ideal Design of Class? | | 2 |
| How many statements can be created with one connection in jdbc? | Polaris | 2 |
| Given:
11. public static void main(String[] args) {
12. Integer i = uew Integer(1) + new Integer(2);
13. switch(i) {
14. case 3: System.out.println(”three”); break;
15. default: System.out.println(”other”); break;
16. }
17. }
‘What is the result?
1 three
2 other
3 An exception is thrown at runtime.
4 Compilation fails because of an error on
line 12.
| | 2 |
| What is AppletStub? | | 1 |
| What is the life cycle of an Applet ? | | 1 |
| Can applet in different page/s communicate with each other? | | 1 |
| Does garbage collection guarantee that a program will not
run out of memory? | | 1 |
| String is an immutable object.
Then how can the following code be justified.
String s1 = ?ABC?;
String s1 = s1+?XYZ?;
s.o.p(s1);
The output is ABCXYZ, which is the value of s1 ?
| Flextronics | 5 |
| 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 difference between @include page and @include file | | 2 |
| What is the difference between pageContext and page
implicit objects in jsp? | Merrill-Lynch | 6 |
| What is the Set interface? | | 2 |
| What are different types of access modifiers? | | 1 |
| How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u. | CSC | 8 |
| What method is used to know the status of Checkbox(i.e it
is checked or unchecked)? | | 1 |
| what is mutability?which one is mutable String or StringBuffer?and why?give
examples of each which shows the mutability of each String or StringBuffer | | 2 |
| Can you run the product development on all operating
systems ? | | 1 |
| |
| For more Core Java Interview Questions Click Here |