aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming and JSP Fundamentals
  • Which of the following methods returns value based on the...
Multiple choice

Which of the following methods returns value based on the key in the Properties class in Java?

  1. public String getProperty(String key)

  2. public void setProperty(String key, String value)

  3. public void load(Reader r)

  4. enumeration propertyNames( )

  5. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This method returns the value associated with key.

Keep practicing — related questions

  • Which of the following is/are method(s) of Properties class in Java?
  • What is the method that can be used to retrive a run time value of any object, say a user input value?
  • What is the method that can be used to retrive a run time value of any object, say a user input value?
  • To retrieve the current property value of the objects in your application during the run session
  • To retrieve the current property value of the objects in your application during the run session.
  • To retrieve the current property value of the objects in your application during the run session.
  • To retrieve the current property value of the objects in your application during the run session.
  • Which of the following methods in Map.Entry interface in Java returns the value for the map entry?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy