What is the correct answer?


Which of the following classes are available in the java.lang package?

A. Random

B. Stack

C. String Buffer

D. Vector

Correct Answer :

A. Random

Related Questions

Which of the following statements are true? JdbcOdbcDriver is an object of Object class In RMI we invoke client method from remote server Which of the following are not keywords? DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… Two methods cannot have the same name in Java. Which of the following methods can be used to remove a component from… What is error in the following class definitions? abstract class… executeUpdate automatically updates data because___________ Given the codeString s = new String("abc");Which of the following calls… Java always provides a default constructor to a class. When present, package must be the first no comment statement in the file. A variable declared inside the for loop control can not be referenced… In evaluating a logical expression of type 'Boolean expression 1&& Boolean… Frames and applets cannot be used together in the same program. It is perfectly legal to assign a subclass object to a supper class reference. The import statement is always the first no comment statement in a Java… Which of the following will produce a value of 22 if x=22.9: The modulus operator (%) can be used only with Integer operands. Give file is a file object, which of the following are legal statements… Connection, Statement are interfaces and ResultSet is a class. The programmer must explicitly create the system .in and system .out objects. With javadoc, which of the following denotes a javadoc comment? In the code below, what data types the variable x can have? Which of the following string can be used as mode string for creating… It is perfectly legal to refer to any instance variable inside of a static… A final class may not have any abstract method. A static class method can be invoked by simply using the name of the method… We can over load methods with differences only in their return type. Which of the following methods can be used to change the size of a size()…