| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Explain different ways of passing arguments to sub-routine? | | 1 |
| 11. static class A {
12. void process() throws Exception { throw new Exception();
}
13. }
14. static class B extends A {
15. void process() { System.out.println(”B”); }
16. }
17. public static void main(String[] args) {
18. new B().process();
19. }
What is the result?
1 B
2 The code runs with no output.
3 Compilation fails because of an error in
line 12.
4 Compilation fails because of an error in
line 15. | | 1 |
| What is numeric promotion? | | 1 |
| How the threads are synchronized? | BMC | 2 |
| Can an anonymous class be declared as implementing an
interface and extending a class? | | 1 |
| What is anonymous class? | | 2 |
| what is stringtolennizer with example? | Symphony | 1 |
| What is update method and when it is called? | | 1 |
| Howmany classes that package java.applet.* contains? | TCS | 1 |
| what is the difference between AWT and SWING what is the
advantage of using swing? | | 3 |
| What is unicode? | | 1 |
| How to synchonise HashMap | IBM | 3 |
| explain about jre and jvm | | 2 |
| They had given one progam
final HashMap hm=new HashMap();
public void show()
{
hm.put("name",value);
}
in this prg here the final hashtable value can be changed in
put method,its the prg run? | DNS | 2 |
| Difference between JDK, JRE, JVM | Oracle | 5 |
| What are the latest versions in JAVA related areas? | Netcraft | 2 |
| using equals method overriding which objects are
compared?i.e same class objects or other class
objects?Explain me. | | 3 |
| hi to all. well can you please tell me that why String class
is immutable?
Thanks in advance. | Huawei | 3 |
| What enableEvents() method do? | | 1 |
| Which containers may have a MenuBar? | | 1 |
| |
| For more Core Java Interview Questions Click Here |