Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Thursday, December 31, 2015

NIIT Java Questions

apply for Java Developer at NIIT Technologies so there are 3 rounds of selection. 

In first round they will ask you some Java Questions through Telephonic source. 

If you clear first round then on 2nd round they will call you for written test of java and general aptitude test. You have to appear in that test.

After clear that test you have to appear in Interview in front of Manager there they will discuss your salary in some terms and conditions. 

In Interview they should also ask you some Java related questions. 

Some of Java interview question is already NIIT JAVA Sample Paper 

Which of the following statements is true:
A) Java doesn’t support inheritance
B) Java supports multiple inheritance
C) Java supports interfaces
D) Java supports polymorphism
E) C and D

Consider the following method:
public void myfunc()
{
static int a = 20;
System.out.println(a++);
}
the value printed by the myfunc() method during its 2nd invocation is:
A) 20;
B) 21
C) 22
D) 19
E) None of the Above

What is the most expensive phase in a software development life cycle?
A) Design
B) Maintenance
C) Implementation
D) Analysis
E) Testing

What will the main method of the following Java class E print?
class C {
public int x = 1;
public C(int i) { x += i; }
}
class D extends C {
public D(int i) { super(i); x += i; }
}
class E {
public static void main(String argv[]) {
C ar[] = new C[2];
ar[0] = new C(1);
ar[1] = new D(2);
System.out.println(ar[0].x + ar[1].x);
}
}
A) 2
B) 3
C) 5
D) 7
E) this program will not compile

Tree Map class is used to implement which collection interface. Select the one correct answer.
Set
Sorted Set
List
Tree
Sorted Map

Which of these are interfaces in the collection framework. Select the two correct answers.
Set
List
Array
Vector
Linked List

Which of these are interfaces in the collection framework. Select the two correct answers.
Hash Map
Array List
Collection
Sorted Map
Tree Map
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List