Create a Mobile class with properties, which can be set once while creating object using constructor arguments. Create getProperties() methods which are having public access modifiers.
Answers
Answered by
1
Explanation:
Java Interview Questions : For Beginners With Sample Examples
Local variables are created in a method and they can be used in that method only. ... We can create String objects using String constructors too. ... static void areaFormula() // static method.
Similar questions