| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Which containers use a FlowLayout as their default layout? | | 3 |
| What is an abstract class and abstract method? | | 4 |
| what ide u r using and wat version, how wil u build the
project etc ? | | 2 |
| Which of the following can be referenced by a variable?
A. The instance variables of a class only
B. The methods of a class only
C. The instance variables and methods of a class | | 2 |
| write a progam hashmap & hashtable? | IBM | 2 |
| Why Java is a platform independent language? | Zensar | 4 |
| How to create an instance of a class if the class has
private constructor? | | 2 |
| What is Collection interface? | Zensar | 1 |
| What is finally in exception handling? | | 6 |
| what is meaning of JIT? | | 4 |
| What is persistence ? | | 2 |
| Program to output as below formate:
1
2 3
4 5 6
7 8 9 10 | Huawei | 2 |
| What is the difference between Trusted and Untrusted
Applet ? | IBM | 1 |
| 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 |
| Why can't we make jsp as a controller and action
servlet in struts? | TCS | 6 |
| Howmany classes that package java.applet.* contains? | TCS | 1 |
| What is exception and error? and what is the difference
between them? | | 2 |
| what is meta-Inf? | Polaris | 2 |
| What are virtual functions? | | 2 |
| What is a deadlock ? | | 5 |
| |
| For more Core Java Interview Questions Click Here |