@Gurpreetsingh
What is method chaining in Java?
Method chaining within Java is a technique in which multiple method requests are linked within a single statement with each method calling operating on the result of the method called before. This makes for more concise and understandable code, removing the requirement to create intermediate variables, or different lines in each method.
https://www.sevenmentor.com/ja....va-training-classes-