Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8636549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:15:18+00:00 2026-06-12T10:15:18+00:00

According to the Java API for the Math class, Math extends the Object class:

  • 0

According to the Java API for the Math class, Math extends the Object class:

public final class Math extends Object

However, Math does not inherit Object’s methods, and you also cannot construct a Math object (EDIT: this statement is false and partly false; see below).

My question is then why is this done? If it is an object, then it should have the bare-bones methods from Object. If it is not an object, then I feel like it should not be extending Object.

And, assuming there is a good reason for extending Object, how is it done? In other words, how are the inherited methods and constructor suppressed?

Math is the foremost example in my mind of this kind of static definition class (I guess you’d call it that?), but this question may also apply to classes that have a similar purpose.

EDIT: So I’m aware that all classes implicitly extend Object. What’s bothering me is that to me there’s a logical disconnect between the notion of an “object” in theory– something with a state and associated functionality– and what’s being done here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:15:20+00:00Added an answer on June 12, 2026 at 10:15 am

    Math does inherit Object‘s methods. Every class in Java ultimately has to inherit from Object. But since you can’t construct Math objects, it doesn’t matter. The methods are inherited, but without being able to construct an instance you can’t ever use them from Math.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Accoriding to javadoc, public class AtomicInteger extends Number implements java.io.Serializable { // code for
according to Java Annotation API: RetentionPolicy.CLASS Annotations are to be recorded in the class
According to http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Class.html#getDeclaredMethods%28%29 , Class.getDeclaredMethods() should only include methods declared by the class. However,
According to the documentation of java.util.Pattern , the POSIX character class \p{Graph} ( [:graph:]
According to the Java API, the constructor Date(year, month, day) is deprecated. I know
Is there any class provided in the Java standard API that allows file structure
According to the Google Youtube Java API if I want to delete a video,
I need to create these patterns in java according to however many lines the
I tested with java.util.IdentityHashMap , See public class IdentityHashMapTest{ public static void main(String args[])
According to doc, calendar set() is: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Calendar.html#set%28int,%20int,%20int%29 set(int year, int month, int date) Sets

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.