Saggezza Interview Question and Blue Star Infotech Limited interview question

Saggezza Interview Question (Held on 20 Sep 2014 ) and Blue Star Infotech Limited (Held on 06 Dec 2014) interview questions.

Saggezza Interview Question (Held on 20 Sep 2014 ) –

In Saggezza there are following round if you are going for 2-3 years experience.

  1. In written they ask objective question.
  2. Technical round.
  3. Web development (they asked to develop web services based application).
  4. Managerial round.
  5. HR round

Note- All objective questions were from SCJP dumps.

Blue Star Infotech Limited (Held on 06 Dec 2014) – In Blue Star infotech there are following round if you are going for 2-3 years experience.

  1. Written. In written they asked 5 objective question.
  2. Technical round(they asked only core java).
  3. Client round (It may be vary according to their client requirement)

List of objective question which is asked in Blue star infotech on date 22 Nov-2014 :-

Question 1 :-

1. public class Threads3 implements Runnable {
2. public void run() {
3. System.out.print("running");
4. }
5. public static void main(String[] args) {
6. Thread t = new Thread(new Threads3());
7. t.run();
8. t.run();
9. t.start();
10. }
11. }

What is the result?
A. Compilation fails.
B. An exception is thrown at runtime.
C. The code executes and prints "running".
D. The code executes and prints "runningrunning".
E. The code executes and prints "runningrunningrunning".
Answer: E

Question 2 :-
10. int x = 0;
11. int y = 10;
12. do {
13. y--;
14. ++x;
15. } while (x < 5);
16. System.out.print(x + "," + y);

What is the result?
A. 5,6
B. 5,5
C. 6,5
D. 6,6

Answer: B

Question 3 :-
10. interface Jumper { public void jump();
}
...
20. class Animal {}
...
30. class Dog extends Animal {
31. Tail tail;
32. }
...
40. class Beagle extends Dog implements Jumper{
41. public void jump() {}
42. }
...
50. class Cat implements Jumper{
51. public void jump() {}
52. }

Which three are true? (Choose three.)
A. Cat is-a Animal
B. Cat is-a Jumper
C. Dog is-a Animal
D. Dog is-a Jumper

E. Cat has-a Animal
F. Beagle has-a Tail
G. Beagle has-a Jumper
Answer: B,C,F

Question 4 :-
22. StringBuilder sb1 = new StringBuilder("123");
23. String s1 = "123";
24. // insert code here
25. System.out.println(sb1 + " " + s1);

Which code fragment, inserted at line 24, outputs "123abc 123abc"?
A. sb1.append("abc"); s1.append("abc");
B. sb1.append("abc"); s1.concat("abc");
C. sb1.concat("abc"); s1.append("abc");
D. sb1.concat("abc"); s1.concat("abc");
E. sb1.append("abc"); s1 = s1.concat("abc");
F. sb1.concat("abc"); s1 = s1.concat("abc");
G. sb1.append("abc"); s1 = s1 + s1.concat("abc");
H. sb1.concat("abc"); s1 = s1 + s1.concat("abc");
Answer: E

Question 5 :-
33. try {
34. // some code here
35. } catch (NullPointerException e1) {
36. System.out.print("a");
37. } catch (Exception e2) {
38. System.out.print("b");
39. } finally {
40. System.out.print("c");
41. }

If some sort of exception is thrown at line 34, which output is possible?
A. a
B. b
C. c
D. ac
E. abc
Answer: D