| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution? | | 2 |
| What is run-time class and system class? what is their
purpose? | | 1 |
| Does 'true' and 'false' are keywords? | | 5 |
| Explain method overloading and overriding? | | 6 |
| What is casting? | | 3 |
| Explain the difference between scrollbar and scrollpane? | | 1 |
| What class is used to implement a Throwable array? | | 3 |
| If you are reviewing the code of your team members, what
points will you look at, assuming the performance of the
application is not so great | KPIT | 2 |
| How to make class immutable | | 5 |
| write java code to print second max number in the array | Huawei | 9 |
| static inner classes means..? | | 1 |
| they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
| DNS | 1 |
| What is file class and what is its purpose? | | 1 |
| What is hard code & soft code? | Wipro | 4 |
| How does Vector implement synchronization? | Ness-Technologies | 2 |
| 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 |
| wahts is mean by thread? | HCL | 14 |
| Why Java is not purely object oriented? | Persistent | 21 |
| if two references are having same hash codes,is that means
those are refering to same object? | CTS | 4 |
| How are this() and super() used with constructors? | | 4 |
| |
| For more Core Java Interview Questions Click Here |