| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Explain the difference between getAppletInfo and
getParameterInfo? | | 1 |
| What are null interfaces? Give some examples? | | 2 |
|
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 |
| 1).Is Object class abstract or not?
2).Is main method(public static void main(String args[])low
priority thread or high priority thread?
| TCS | 2 |
| What is interface and its use? | HCL | 6 |
| Have you used any version control ? if so explain about it? | | 1 |
| explain the life cycle of thread? | CTS | 5 |
| what is business objects? | | 1 |
| What is Remote Interface ? | CTS | 4 |
| Difference between ?System.out.println?
and ?System.error.println?? | Sai-Softech | 2 |
| class A
{
class B
{
psvm(String args[])
{
}
}
}
if the prg saved in A.java whats the o/p? | HCL | 5 |
| 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 |
| what is the use of private constructor in core java? | Satyam | 3 |
| What is the purpose of having the concept of overloading? | Ness-Technologies | 5 |
| What is Runtime class and its purpose? | | 2 |
| Can you extend more than one interface? | | 4 |
| what are the jsp tags with example? | Photon | 1 |
| can we create a instance for intwerface? | | 3 |
| 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 |
| What is the basically use of finally while we know it
is always executed but why? | TCS | 4 |
| |
| For more Core Java Interview Questions Click Here |