DEFAULT_VALUE is predefined keyword , or how can we defined array size by default.??
DEFAULT_VALUE is Predefined?
@Vipin_coder No, no bro that is not a keyword basically that is a convention best practice to write static variables.
You can see a constructor below!
Basically from that constructor other constructor is called with this DEFAULT_VALUE as argument.
If ya query is clear, mark the doubt resolved and rate full!
Happy coding!
How can assign defualt size to the array, this(DEFAULT_VALUE), i can’t understand this line
@Vipin_coder this is a keyword in java, so if you see the video carefully, there are two constructors non parameterized and parameterized now, this from non parameterized is calling single parameter constructor and passing the Default value there, because user has not passed any size explicitly!
if there is more than one parameterized constructors , so how can i verify default_value pass to which constructor
@Vipin_coder I have built a sample for you, run each instance one by one. You learn things by doing make it a habit!.
Check this!