adplus-dvertising
frame-decoration

Question

Which of the following is method of System class is used to find how long a program takes to execute?

a.

currenttime()

b.

currentTime()

c.

currentTimeMillis()

d.

currenttimeMillis()

Posted under Java Programming

Answer: (c).currentTimeMillis()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is method of System class is used to find how long a program takes to execute?

Similar Questions

Discover Related MCQs

Q. Which of these class holds a collection of static methods and variables?

Q. Which of these class is a superclass of all other classes?

Q. Which of these method of Object class can generate duplicate copy of the object on which it is called?

Q. What is the value of double consonant ā€˜Eā€™ defined in Math class?

Q. Which of these method is a rounding function of Math class?

Q. Which of these class contains only floating point functions?

Q. Which of these class encapsulate the runtime state of an object or an interface?

Q. What is the value of ā€œdā€ after this line of code has been executed?

double d = Math.round ( 2.5 + Math.random() );

Q. Which of these exceptions is thrown by methods of System class?

Q. Which of these methods initiates garbage collection?

Q. Which of these methods loads the specified dynamic library?

Q. Which of these method can set the out stream to OutputStream?

Q. Which of these values are returns under the case of normal termination of a program?

Q. Which of these is a super class of wrappers Double and Float?

Q. Which of the following methods return the value as a double?

Q. Which of these methods can be used to check whether the given value is a number or not?

Q. Which of these method of Double wrapper can be used to check whether a given value is infinite or not?

Q. Which of these exceptions is thrown by compareTo() method defined in a double wrapper?

Q. Which of these packages contain classes and interfaces used for input & output operations of a program?

Q. Which of these class is not a member class of java.io package?