| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Java support what type of parameter passing ? | Wipro | 6 |
| What are order of precedence and associativity, and how are
they used? | | 1 |
| Why cant we define System.out.println() inside a class
directly? | | 4 |
| How to add two numbers with out using Arithmetic , union
operators in java....?
But we can use bitwise operators... but how...?
| CTS | 2 |
| What is advantage of using threads? | BMC | 2 |
| what is ennumaration? | AMDOC | 1 |
| How to deprecate a method?
Show it with proper example.
Plz give the answer of this.Thanx in advance.
mail me: tanzeem.akhtar@gmail.com | | 1 |
| What is the difference between getCodeBase and
getDocumentBase methods? | | 1 |
| what is multithreading? | Virtusa | 4 |
| what is an object and how do you allocate memory to it? | Wipro | 3 |
| what is the use/perpose of having a method antive? | | 2 |
| Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang> | Symphony | 6 |
| how do you store phone numbers using java collections | Bosch | 4 |
|
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 |
| what is difference between class and object? | | 11 |
| What is the % operator? | | 2 |
| Program to find greatest prime number in n numbers? | Huawei | 3 |
| what is the difference between abstract class and
Interface?where we can use it in realtime projects? | Logica-CMG | 10 |
| If set accepts only one argument then how can it compare
two objects to avoid duplicates | | 3 |
| what is real-time example of runtime polymorphism and
compile time polymorphism | | 1 |
| |
| For more Core Java Interview Questions Click Here |