Java Date getSeconds() MethodLast Updated : 17 Mar 2025 The getSeconds() method of Java Date class returns the value between 0 to 61 which represents the second of the past minute and second of the minute is represented by this date object. This method is deprecated as of JDK version 1.1 and replaced by Calender.get(Calender.SECOND) Syntax:ParametersNA ReturnIt returns the second of the past minute represented by this date object. Example 1Output: Second of the minute is : 53 Next TopicJava Util Date |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India