Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2016
    Posts
    47
    Rep Power
    0

    Default System class maintains a Properties object

    At the following website, https://docs.oracle.com/javase/tutor...t/sysprop.html

    it says, "System class maintains a Properties object that describes the configuration of the current working environment."

    1. What does this mean: "System class maintains a Properties object?"

    2. Also the System object https://docs.oracle.com/javase/8/doc...w-summary.html and the Properties object https://docs.oracle.com/javase/8/doc...w-summary.html both have a method by the same name called getProperty(String key).

    Is getProperty(String key) in both situations really the same method or is it two different methods which just happen to have the same name and same parameters?

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: System class maintains a Properties object

    It means that System class maintains an instance of the Properties object. The Properties class simply subclasses Hashtable to
    store the values of a property. Look at the Properties API for more info.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Replies: 4
    Last Post: 09-06-2012, 03:48 PM
  2. If i change a system properties...
    By Max-Power in forum New To Java
    Replies: 0
    Last Post: 03-07-2011, 11:22 PM
  3. System Properties
    By Starvation in forum Advanced Java
    Replies: 43
    Last Post: 06-30-2010, 10:35 AM
  4. Getting System Properties
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-19-2007, 06:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •