What can be used to create the objects?
ऑब्जेक्ट को बनाने के लिए क्या उपयोग किया जा सकता है?
Select one:
O A. data item
डेटा आइटम
O B. class
class
O C. module
मॉड्यूल
O D. objects
ऑब्जेक्ट
Answers
Answered by
2
Answer:
Objects
Explanation:
Ethical Hacking Full Course
Answered by
0
B. class can be used to create the objects.
Explanation:
- An object is an instance of a class.
- A class is a template or blueprint from which is used to create objects.
- Java mainly provides five different ways through which we can create an object, these are:
- Using a new Keyword.
- Using a clone() method.
- Using a newInstance() method of the Class class.
- Using a newInstance() method of the Constructor class.
- Using Deserialization.
- The values which are assigned by the constructor to the class members is used to create the object.
- Hence, the correct answer among all the options is option B. class.
(SPJ2)
Similar questions
History,
4 months ago
Social Sciences,
4 months ago
Psychology,
4 months ago
Science,
8 months ago
Computer Science,
11 months ago
History,
11 months ago