Answer to Question #224071 in Java | JSP | JSF for Das

Question #224071

Write a program to show the use of static functions and to pass variable length

arguments in a function.


1
Expert's answer
2021-08-09T16:27:07-0400
ublic class Main{
    private static int x=10;
    public static int ValueAddition(int v){
        return v + x;
    }
    
    
     public static void main (String[] args) {
        System.out.println(ValueAddition(9));
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS