What is the % operator?

Answer Posted / mohammed salim

% is a modulus operator..And it returns the remainder of
the division operation.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is void a return type?

545


Why set do not allow duplicates in java?

571


What is the default value of an object reference declared as an instance variable?

531


How do you use substring in java?

538


Does list maintain insertion order java?

530






Can a constructor be private and how are this() and super() method used with constructor?

518


How we can generate random numbers in java?

599


What Is Composition?

575


What are the basic concepts of OOPS in java?

564


What are namespaces in java?

518


Why does java have two ways to create child threads?

464


What is finalize() function in java?

555


How do you sort a set in java?

511


What is difference between variable declaration and definition?

507


what is the purpose of the runtime class?

548