Question: Normally, to access a static member of a class such as Math.PI, you would need to specify the class "Math". What would be the best way to allow you to use simply "PI" in your code?

  1. Add a static import.
  2. Declare local copies of the constant in your code.
  3. This cannot be done. You must always qualify references to static members with the class form which they came from.
  4. Put the static members in an interface and inherit from that interface.

Answer: The correct answer of the above question is Option A:Add a static import.