AmbitionBox
Discover Best Places to work in India
Discover best places to work
Compare & find best workplace
Bring your workplace to life
Highlight your company's perks
Read reviews for 6L+ companies
Rate your former or current company
Discover salaries for 8L+ companies
Calculate your take home salary
Check your market value
Help other jobseekers
Read interviews for 90K+ companies
Interviews questions for 1K+ colleges
Contribute your interview questions
Java Programming
Which of the following statements are valid array declaration? (A) int number(); (B) float average[]; (C) double[] marks; (D) counter int[];
A
A & C
D
B & C
Which of the following will output a random with values only from 1 to 10?
System.out.println(Math.round(Math.random()* 10));
System.out.println(Math.round(Math.random() % 10));
System.out.println(Math.random() *10);
None of these
Which of the following will compile correctly?
System.out.println(Math.max(x));
System.out.println(Math.random(10,3));
System.out.println(Math.round(20));
System.out.println(Math.sqrt(10));
Join India’s largest community to research company culture
Are you a student or working professional?
Student/Never worked
I am a student/I have never worked
Working Professional
I am working/I have worked before
What are your preferred job locations?
Popular Cities
Other Cities
Follow your preferred designations/job profiles
Suggestions based on your job profile
vs
Similar Companies