| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Can an anonymous class be declared as implementing an
interface and extending a class? | | 1 |
| What is Transient and volatile | iFlex | 9 |
| how can we synchronize Hash map? | CTS | 3 |
| What is the Layout for ToolBar? | | 1 |
| what is the use of datasource in core java? | Satyam | 2 |
| How are Observer and Observable used? | | 2 |
| What are the similarities between an array and an ArrayList? | | 2 |
| In the first round, there are 30 aptitude and 30 java
questions. We are suppose to finish both the papers within
60 minutes.
I cleared this round.
Next was test for programming skills.
In this section, Some 7 n's were asked.
1.
What is the difference b/w sleep(1000) and wait(1000)
2.
what is the diff b/w static block and static function?
3.
Write a program to validate IP address using string
tokenizer.
4.
Write a program to create singleton class
5.
write a function to reverse the string
6.
Write a prog to print prime nos upto n. EX: If n=9, It shld
print 1,2,3,5,7
7. One program on collections- Write a program to print no.
of times a number is repeating in an array.
EX- {1,3,1,2,5,7,3,7,34,3,8,3}
It should print: 1- 2 times
3- 4 times and so on
7. Write a func to print fibonocci series
After this I had technical interview, which went on for.
60 mins or so. There were qn's about multi threading,
Exception handling and collection classes.
Knowledge about collections was very important for the
post I was interviewed for. | Huawei | 1 |
| How to do validation of the fields in any project ? | | 2 |
| how you will prevent method overriding? | HCL | 4 |
| 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 are other modifiers? | Wipro | 1 |
| What is the range of the short datatype? | | 2 |
| what is the purpose of method overriding in java where v r
completely re-defining a inherited method instead y can't v
create a new method and define.If the question is very silly
plz excuse me and do reply.Thank U! | | 5 |
| How to make a class immutable? | Bosch | 6 |
| How to override a equals() method and what is the use? | | 1 |
| What is method Overloading in the perspective of OOPS? | | 4 |
| How you can create a radio buttion using Checkbox class? | | 1 |
| Which Math method is used to calculate the absolute value of
a number? | Accenture | 3 |
| if two references are having same hash codes,is that means
those are refering to same object? | CTS | 4 |
| |
| For more Core Java Interview Questions Click Here |