Explore tweets tagged as #constructor_in_java
In a #Java constructor Optional is used to set fields. In the first approach i need to read to the end to see which field is being set. I find that harder to read. The latter approach tells me what is being set, then how and what the default value will be. What do you think?
23
6
104
🚀 Java Tip 🚀. Compact Constructor in Records. The compact form helps developers focus on validating and normalizing parameters without the tedious work of assigning parameters to fields. 🔥. #Java #JavaRecords
1
14
111
*Constructor Chaining in Java: Simplifying Object Initialization*. In Java, constructor chaining is a technique used to initialize objects efficiently. It allows multiple constructors to call each other, reducing code duplication and improving readability. #Java
1
1
4
Day 36 Of #100DaysOfCode✅.🔹Revised the concepts of Final, this & super keywords in java. 🔹Revised the concept of Constructor in Inheritance, & Constructor chaining in Java .🔹Practiced coding implementing this, final, super and Constructor in inheritance & const. chaining
0
0
3
🚀 Day 8 of mastering Java :. Today was my Day 8 of mastering core Java with @anujbhaiya716.Here is what I learned on Day 8 :. ✅ Classes and Objects.✅ Constructors.✅ Method and Constructor Overloading.✅ 'this' keyword in Java
0
1
1
I know you can write custom validators here but does anyone have a problem with validating record components in the constructor 🤷♂️ #Java
13
3
109
Day 22 of #100DaysOfCode .📌 Shadowing problem & THIS keyword.📌 Getters , Setters.📌 Constructor in #Java .#LearnInPublic
0
0
2