| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is main purpose of interface? | Accenture | 2 |
| Is JRE required to compile Java files ? | HCL | 3 |
| what is the use of finalize()Method
please explain with an example | | 2 |
| what is a thread? | IBM | 10 |
| A abstract class extending an abstract class.Super class
has both abstract and non-abstract methods.How can we
implement abstract and non-abstract mehtods? Explain with
snippet | | 3 |
| strings in java are objects.why? | | 2 |
| what are the new features available in java 1.5 version? | Motorola | 2 |
| How are this and super used? | | 6 |
| How Applets & Servlets will communicate with each other? | | 2 |
| real time example for deadlock,starvation,livelock | | 4 |
| what is difference between servletconfig and servletcontext? | AMDOC | 3 |
| When does the compiler supply a default constructor for a
class? | TCS | 8 |
| different types of threads? | TCS | 7 |
| How to create an instance of a class if the class has
private constructor? | | 2 |
| What is HashTable? | | 3 |
|
33. try {
34. // some code here
35. } catch (NullPointerException e1) {
36. System.out.print(”a”);
37. } catch (RuntimeException e2) {
38. System.out.print(”b”);
39. } finally {
40. System.out.print(”c”);
41. }
What is the result if a NullPointerException occurs on line
34?
1 c
2 a
3 ab
4 ac
| | 1 |
| Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example? | | 2 |
| explain about casting of objects? | | 4 |
| what is finalmethod & final variable with example? | HP | 2 |
| what is polymorphism? | | 2 |
| |
| For more Core Java Interview Questions Click Here |