Which of the following is a best practice to measure time taken by a process for execution?
(a) System.currentTimeMillis()
(b) System.nanoTime()
(c) System.getCurrentTime()
(d) System.getProcessingTime()
I got this question in an internship interview.
This is a very interesting question from Coding best practices in portion Autoboxing & Miscellaneous of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)