| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How Array List can be Serialized. | Polaris | 5 |
| Q) I have a ArrayList object, in that object i have added 5
integer values, 5 float values, 5 string values. Now
question is how can delete particular type of data ( i.e all
int values or all float values or string values) in that
list object at a time? | Aricent | 2 |
| How to re-get an object that is collected by garbage
collector? | | 1 |
| How do you compare two strings? any predefined method for
this? | | 2 |
| how can you retrive information from database by using
hashmap/arraylist ,plz explain with example briefly? | Satyam | 1 |
| write a progam hashmap & hashtable? | IBM | 2 |
| What is the method used to get the absolute value of a
number? | | 2 |
| Can you call a constructor within a constructor? | | 6 |
| What is Map interface? | Wipro | 2 |
| What is meant by controls and types? | | 1 |
| can we create a instance for intwerface? | | 3 |
| what is java | | 9 |
|
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 advantage of using threads? | BMC | 2 |
| What is Collection interface? | Zensar | 1 |
| Why to give the file name same as the public class name in
java? | | 3 |
| What are the OOAD concepts in java explain with examples? | Aricent | 4 |
| Name the method that is used to set a TextComponent to the
read-only state? | | 1 |
| What is persistence ? | | 2 |
| What are different types of Exceptions?. | | 5 |
| |
| For more Core Java Interview Questions Click Here |