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 these method of class String is used to obtain length of String object?
get()
sizeof()
lengthof()
length()
Which of these operators can be used to concatenate two or more String objects?
+
+=
&
||
Which of these methods is used to obtain value of invoking object as a long?
long value()
long longValue()
Long longvalue()
Long Longvalue()
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));
The exception class is in ____ package
java.file
java.io
java.lang
java.util
Which keyword is used to monitor statement for exception?
try
catch
throw
throws
If an exception is generated in try block , then it is caught in ____ block
finally
______ is a superclass of all exception classes.
Exception
throwable
RuntimeException
IOException
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