What is the correct answer?


The modulus operator (%) can be used only with Integer operands.

A. True

B. False

Correct Answer :

B. False

Related Questions

In RMI before running the client program we must start RMI Registry. Submit button always fires doPost(...) Message-Driven beans act as a listener for the Java Message Service API,… The concept of multiple inheritance is implemented in Java by If you want to assign a value of 99 to the variable year, then which of… Java is fully object oriented programme. Which of the following will produce a value of 22 if x=22.9: Which of the following statements are valid array declarations? It is perfectly legal to assign a subclass object to a supper class reference. It is an error if a class with one or more abstract methods is not explicitly… A string object can not be modified after it is created. Every method of a final in class is implicitly final. An individual array element that is passed to a method and modified in… DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… When we implement the Runnable interface, we must define the method Java always provides a default constructor to a class. To delete a file, we can use an instance of class file. The length of a string object 's1' can be obtained using the expression… In order to connect to a database through java program we must create… A panel can not be added to another panel. All the bitwise operators have the same level of precedence in Java. Which of the following classes are available in the java.lang package? Which of the following represent legal flow control statements? All methods in an abstract class must be declared abstract. Declarations can appear anywhere in the body of a Java method. An EJB is a server-side component that encapsulates the business logic… Which of the following methods can be used to change the size of a size()… A class may be both abstract and final. Any class may be inherited by another class in the same package.