Time Left - 04:00 mins

RRB JE (IT) : JAVA Programming

Attempt now to get your rank among 228 students!

Question 1

Which is a valid declaration within an interface?

Question 2

If m and n are int type variables, what will be the result of the expression m%n when m = 5 and n = 2?

Question 3

Which of the following statement are valid array declaration?

i. int number ();

ii. float average [];

iii. double [] marks;

iv counter in [];

Question 4

Which of these literals can be contained in a data type float variable?

Question 5

What will this code print?

int arr [] = new int [5];

System. Out. Print (arr);

  • 228 attempts
  • 0 upvotes
  • 7 comments
Jul 12GATE & PSU CS