| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is use of business objects? | Tech-Mahindra | 3 |
| What is the importance in context in JDBC connection pools? | iFlex | 2 |
| What is casting? | BMC | 3 |
| What is interface and its use? | HCL | 6 |
| 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 |
| where u use Abstraction and Interface in real time | Sonata | 2 |
| What are field variable and local variable? | | 2 |
| Is it compulsory to have atleast one abstract method in
abstract class?
| | 7 |
| What is parameter tag and what is its use? | | 1 |
| Write a program to create a binary Tree ? | | 1 |
| what ide u r using and wat version, how wil u build the
project etc ? | | 2 |
| what is polymorphism? | | 2 |
| When we can access the static data member without creating
the object what is the need of the object in java.
| ssinformatics | 4 |
| why the equals method can be override?when we override the
equals method? | | 4 |
| What is the Dictionary class? | | 1 |
| What classes can be used to store arbitrary number of
objects ? | | 1 |
| Which containers use a FlowLayout as their default layout? | | 3 |
| why to use transient variables when static variables can be
used for Serialization | | 3 |
| Inorder to specify a container?s layout, which method is
used? | | 1 |
| types of applets?. | TCS | 3 |
| |
| For more Core Java Interview Questions Click Here |