| 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.
| | 3 |
| Difference between Applet & Application? | | 5 |
| After compilation of java program we'll get .class code. If
it's generated in OS Windows XP will it work on OS Linux? If
yes why? If no why? | Aricent | 4 |
| What is the difference between static and non-static
variables? | | 2 |
| "We cannot create an object of interface but we can create a
variable of it". Discuss the statement with the help of an
example.
(Plz help us to provide immediately.) | | 2 |
| Is there is any error if you have multiple main methods in
the same class? | Wipro | 9 |
| What are Advatages of Overloading and Overridding. | TCS | 3 |
| What is file class and what is its purpose? | | 1 |
| To what value is a variable of the Boolean type
automatically initialized? | | 3 |
| When we will use an Interface and Abstract class? | | 3 |
| What is the range of the short datatype? | | 2 |
| what is Remote Reference Layer ? | | 1 |
| what is a package? | | 8 |
| How are commas used in the initialization and iteration
parts of a for statement? | | 2 |
| garbate collector(GC)? | | 4 |
| Explain Public static void main? | | 2 |
| Why we can not force Garbage Collection? | | 5 |
| what is jdk1.5 features? | Virtusa | 2 |
| Difference between an argument and a parameter? | HCL | 4 |
| Who developed JScript language? | | 3 |
| |
| For more Core Java Interview Questions Click Here |