| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the JNDI? | | 3 |
| can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...} | | 4 |
| why we import both packages java.awt.*; and java.awt.event.*;
as java.awt.*; can import all classes na. then what is the
need of importing java.awt.event.*; ? | | 2 |
| What is anonymous class? | | 2 |
| Why Java is not purely object oriented? | Persistent | 21 |
| Name the package that always imported by default? | | 2 |
| Difference between Array and vector? | | 4 |
| What is meant by throwing an Exception? | Accenture | 4 |
| How can you say HashMap is syncronized? | IBM | 13 |
| Name the immediate superclass of the MenuComponent class? | | 1 |
| What is the diff. b/w Interfaces & Abstract class? | Ericsson | 4 |
| What for read() function? | | 3 |
| Instead of writing Home, Remote Interfaces if i directly
extends EJBObject to bean class what happens?
| Flextronics | 1 |
| What is meant by event handling? | | 1 |
| How to sort a vector elements that contains the user define
class object? (Note: If Suppose consider, A Student class
contain two data members. They are String studentName and
int rollNo. I am creating Four objects for this class, each
object contains students details like name and roll no. Now
i am storing that objects in vector and if i retiving the
elements from the vector means then it should be display in
sorting order) | ProdEx-Technologies | 2 |
| How to add two numbers with out using Arithmetic , union
operators in java....?
But we can use bitwise operators... but how...?
| CTS | 2 |
| What is protected and friendly? | | 1 |
|
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
| | 2 |
| AWT event listeners extends what interface? | | 1 |
| Which class should you use to obtain design information
about an object | | 2 |
| |
| For more Core Java Interview Questions Click Here |