Java Programming Questions and Answers
Which of these method of class String is used to obtain length of String object?
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?
Which of the following statements are valid array declaration? (A) int number(); (B) float average[]; (C) double[] marks; (D) counter int[];
Which of the following will output a random with values only from 1 to 10?
Which of the following will compile correctly?
The exception class is in ____ package
Which keyword is used to monitor statement for exception?
If an exception is generated in try block , then it is caught in ____ block
______ is a superclass of all exception classes.