| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| Explain Stream Tokenizer? | | 3 |
| Name the methods in mouse listeners ? | | 3 |
| how can i cal servlet from jsp page?how can i pass
variablesfrom the jsp that servlet can access? | Verizon | 1 |
| I have one Shopping cart application, i that i have
selected some items, while clicking submit button by
mistake i have clicked twice or trice, that time items are
selected twice or trice. Actually i want only one copy of
items but its selected twice or trice. So how can we avoid
this problem? | Honeywell | 2 |
| How can you sort dates? | TCS | 1 |
| write the hierarchy of component class? | | 1 |
| If set accepts only one argument then how can it compare
two objects to avoid duplicates | | 3 |
| Why Wait and notify are kept in Object class although they
are used only with Thread Class | Saksoft | 2 |
| What are other modifiers? | Wipro | 1 |
| what is web.xml?and its use? | CTS | 6 |
| How can you take string into InputStream? | | 3 |
| In the HashMap, we know the values but we dont know the key,
then how can we get the key from HashMap ????? | Kanbay | 3 |
| how session will be expired ? | Satyam | 2 |
| What error occurs if a try-catch-finally statement sequence
does not have a catch clause? | | 2 |
| Write a program to create a binary Tree ? | | 1 |
| What is meant by class loader and how many types are there? | Apple | 1 |
| Difference between Choice and a List? | | 1 |
| when to use abstract class and when to use interface? | IonIdea | 5 |
| How the elements are organized in CardLayout? | | 5 |
| |
| For more Core Java Interview Questions Click Here |