To understand the var args concept , let us solve the following problem Write a class that has a method called sum( ) which can add and return the sum of all the integers passed to it as argument . The method should be able to accept 2 3 or 4 argum...
javaforinterview.hashnode.dev4 min read
No responses yet.