| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is tempplate pattern | RBS | 4 |
| why the abstract class has default constructor? | | 1 |
| Is there any use of an abstract class which has no methods
and no attributes? | Wipro | 1 |
| What is the return type of a program?s main() method? | | 2 |
| A abstract class extending an abstract class.Super class
has both abstract and non-abstract methods.How can we
implement abstract and non-abstract mehtods? Explain with
snippet | | 3 |
| os is developed in c no
java is more secured then c na
why dont the os developed is developed using java | | 1 |
| What is Remote Interface ? | CTS | 4 |
| I/O blocking means? | | 1 |
| can u give one sinario when you use Abstract Class and When
you use Interface. | ITC-Infotech | 5 |
| What is compile time polymorphism? | Elementus-Technologies | 6 |
| What are virtual functions? | | 2 |
| Which containers may have a MenuBar? | | 1 |
| I have one POJO class(Java bean class), it has two
variables for that it has setters and getters. Now i have
created two objects for that class and i have set the data
for those variables through this two objects. Now question
is i want check whether those two objects have same data or
not, for this write a program? Thanks, Bose. | Oracle | 2 |
| What is the difference between this() and super()? | TCS | 11 |
| What are Font and FontMetrics classes? | | 1 |
| watz the difference between abstract class and interface?
Which one u ill choose as a designer? | Sonata | 1 |
| Hai all
I want to print given array in reverse order Ex:
int a[]={1,2,3,4,5};display this array in reverse order. | | 2 |
| What is the purpose of setAutoCommit() ? | Google | 1 |
| Given:
10. interface A { void x(); }
11. class B implements A { public void x() { } public
voidy() { } }
12. class C extends B { public void x() {} }
And:
20. java.util.List list = new java.util.ArrayList();
21. list.add(new B());
22. list.add(new C());
23. for (A a:list) {
24. a.x();
25. a.y();;
26. }
What is the result?
1 Compilation fails because of an error in
line 25.
2 The code runs with no output.
3 An exception is thrown at runtime.
4 Compilation fails because of an error in
line 20.
| | 1 |
| what is jdk1.5 features? | Virtusa | 2 |
| |
| For more Core Java Interview Questions Click Here |