| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Hi ,i convert contrller as jSp And presentation as
servlet ...will it do? if so what are advantage and
idsadvantages | IBM | 1 |
| Explain the differences between public, private, protected
and static? | | 3 |
| what's diff between struts 1.1 & 1.2 | Wipro | 2 |
| Write program to print Hello World and print each character
address in that string and print how many times each
character is in that string?
Ex: H: 0 & 1
e:1 & 1
l :2,3,8 & 3
o:4,6 & 2
w:5 & 1
r: 7 & 1
d 9 & 1 | Huawei | 3 |
| what is servlet filter? | | 1 |
| What is the difference between Abstract Class and Interface | AMDOC | 6 |
| 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 |
| what is mean by method signature? | Satyam | 5 |
| Hai all
I want to print given array in reverse order Ex:
int a[]={1,2,3,4,5};display this array in reverse order. | | 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 'finally' method in Exceptions? | | 4 |
| EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006. | EDS | 1 |
| what is unreachable code problem in multiple catch statements | | 2 |
| Can a lock be acquired on a class? | | 2 |
| Why Wait and notify are kept in Object class although they
are used only with Thread Class | Saksoft | 2 |
| I have a Person object with 5 variables and I want to store
them in a file called Person.txt. What should I do? | KPIT | 3 |
| When we will use an Interface and Abstract class? | | 3 |
| StringBuilder s = new StringBuilder("Hello
Mom");s.append(",I mean,Mother");
Response.Write(s.ToString());
String s = "Hello Mom";
s+ = ",I mean Mom";
Response.Write(s);
Which is faster ? which uses the most memory? | | 4 |
| how many ways we can serialize the java object? | Satyam | 1 |
| |
| For more Core Java Interview Questions Click Here |