Home

What is the correct answer?

4

Which of the following control expressions are valid for an if statement?

A. an integer expression

B. a Boolean expression

C. either A or B

D. Neither A or B

Correct Answer :

B. a Boolean expression


Related Questions

forName() is a static factory method JdbcOdbcDriver is an object of Object class Which of the following are the wrapper classes? We can add more than one class(es) at the time of compilation Java Beans. An individual array element that is passed to a method and modified in… The keywords reserved but not used in the initial version of Java re: We would like to make a member of a class visible in all subclasses regardless… Given the codeString s = new String("abc");Which of the following calls… Which of the following will produce a value of 22 if x=22.9: The break statement is required in the default case of a switch selection… A string object can not be modified after it is created. Which are the valid ways to create DataInputStream streams? When the string objects are compared with ==, the result is true If the… When we implement the Runnable interface, we must define the method Which of the following methods can be used to draw the outline of a square? Submit button always fires doPost(...) Which of the following control expressions are valid for an if statement? Consider the following class definition.Class Student extends String{}What… The concept of multiple inheritance is implemented in Java by A class may be both abstract and final. The methods wait() and noify() are defined in Which of the following methods can be used to change the size of a size()… Which key word can protect a class in package from accessibility by the… Consider the following statements: int x = 10, y = 15; x = ((x < y)… The length of a string object 's1' can be obtained using the expression… In RMI we invoke client method from remote server class.forName(...) creates an instance of java ODBC driver The name of a Java program file must match the name of the class with… Frames and applets cannot be used together in the same program. Which exception is thrown by the read() method of InputStream class?