| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 | 3 |
| which one the better thread emplemented thread or extended ? | Fidelity | 3 |
| What are wrapper classes? | Noah-Solutions | 2 |
| What is the use of Getters and Setters method ? | | 2 |
| Which is not Object in Java? | Honeywell | 6 |
| 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. | | 1 |
| what is servlet filter? | | 1 |
| Why we need to serialize the object | Geometric-Software | 3 |
| What is meant by constructor? | | 3 |
| What are the limitations for static method? | | 1 |
| what modifiers are used with top-level class? | | 2 |
| How to find the length and capacity of a string buffer ? | | 1 |
| Are nested try statements are possible? | | 2 |
| How does a try statement determine which catch clause
should be used to handle an exception? | | 2 |
| why ,we are using jsp and html.which one is better? | Photon | 1 |
| what is difference between front controller and action servlet? | | 1 |
| what is difference betwwen hashmap and hashtable ? | Fidelity | 5 |
| Can a Byte object be cast to a double value? | | 1 |
| explain System.out.println | IBM | 19 |
| What is the difference between a public and a non-public
class? | | 1 |
| |
| For more Core Java Interview Questions Click Here |