| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Explain the relationship between the Canvas and Graphics
class? | | 1 |
| if two references are having same hash codes,is that means
those are refering to same object? | CTS | 4 |
| Who developed JScript language? | | 3 |
| 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 |
| What is clipping? | | 2 |
| How do you set security in applets? | Wipro | 1 |
| what is Dictionary? and what purpose it is used for? | | 2 |
| is this possible to create an array of 0 length?
if so how? if not so why?
coz we have an array in main() likw this
"static void main(String [] s) then what it signifies? | Hexaware | 2 |
| Explain Public static void main? | | 2 |
| how to minimize the functionality to will not force garbage
collector? | | 2 |
| What is the default initialized value of a boolean type
variable? | | 3 |
| How to send a request to garbage collector? | | 3 |
| suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ? | Fidelity | 6 |
| By what default value is an object reference declared as an
instance variable? | Wipro | 1 |
| what is main difference between architecture,framework and
design pattren | | 1 |
| what is session facade ? | | 2 |
| can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...} | | 4 |
| Define interface? | | 2 |
|
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
| | 1 |
| who was the founder of java
| HCL | 8 |
| |
| For more Core Java Interview Questions Click Here |