| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| I have a String s = java; What is the output when I say
s.replaceAll('j', 'k'); Also what is the value of s after
replacing? | KPIT | 5 |
| Difference between this(), super()? | | 8 |
| whats the diff between jsp and servlets? | HCL | 9 |
| What are hot spots in Java programming? | | 1 |
| 84. try {
85. ResourceConnection con =
resourceFactory.getConnection();
86. Results r = con.query(”GET INFO FROM CUSTOMER”);
87. info = r.getData();
88. con.close();
89. } catch (ResourceException re) {
90. errorLog.write(re.getMessage());
91. }
92. return info;
Which is true if a ResourceException is thrown on line 86?
1 Line 92 will not execute.
2 The connection will not be retrieved in line
85.
3 The resource connection will not be closed
on line 88.
4 The enclosing method will throw an exception
to its caller.
| | 1 |
| How are this() and super() used with constructors? | | 4 |
| What is JIT ? | Satyam | 4 |
| when to use abstract class and when to use interface? | IonIdea | 5 |
| primitive data types in Java ? | | 3 |
| what is difference between requestprocessor and request
dispatcher? | Tech-Mahindra | 1 |
| What is AppletStub? | | 1 |
| When finalize method is called? | | 3 |
| What is ResourceBundle class? | | 1 |
| What are the Object and Class that classes used for? | | 3 |
| what is difference between servletconfig and servletcontext? | AMDOC | 3 |
| Explain Public static void main? | | 2 |
| Can we declare static variables in JSP page. | TCS | 3 |
| Hi buddy, well i got that there is always a default
constructor with abstract class. OK. But why not with interface?
Thanks in advance. | | 2 |
| Can you declare a static variable in a method? | | 4 |
| How will you convert an ArrayList to Arrays? | KPIT | 3 |
| |
| For more Core Java Interview Questions Click Here |