| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| why java does not support multiple inheritance | Mind-Tree | 14 |
| what is marker interface ? what is the necessity of it? | Accenture | 4 |
| Howmany number of objects we can store in an ArrayList. Is
there any limit? | TCS | 5 |
| How to create an instance of a class if the class has
private constructor? | | 2 |
| What is audio clip interface? Name few methods of it ? | | 1 |
| explain the life cycle of thread? | CTS | 5 |
| When we can access the static data member without creating
the object what is the need of the object in java.
| ssinformatics | 4 |
| How multi processing is achieved in JAVA? | BMC | 4 |
| how many access specifiers are available in java | | 5 |
| whats string ? | HCL | 8 |
| Same common question what is Map,Set,HashMap,List???? | Symphony | 3 |
| What are the allowed, non-Unicode letter characters that
can be used as the first character of an identifier? | | 2 |
| what is stringtolennizer with example? | Symphony | 1 |
| What is the difference between throw and throws? | | 5 |
| can we have virtual functions in java? | Wipro | 7 |
| What is casting? | | 3 |
| Given:
11. public static void main(String[] args) {
12. Integer i = uew Integer(1) + new Integer(2);
13. switch(i) {
14. case 3: System.out.println(”three”); break;
15. default: System.out.println(”other”); break;
16. }
17. }
‘What is the result?
1 three
2 other
3 An exception is thrown at runtime.
4 Compilation fails because of an error on
line 12.
| | 2 |
| Can I create any Marker Interface? If yes then how can I
use it??? | | 1 |
| what is difference between throw and throws in exception? | | 16 |
| what is the use of private constructor in core java? | Satyam | 3 |
| |
| For more Core Java Interview Questions Click Here |