You are here: Home / Topics / Program to explain Wrapper class with function in Java

Program to explain Wrapper class with function in Java

Filed under: Java on 2023-09-19 08:08:18

//  Program to explain Wrapper class with function.

class  Wrapper3
{
static int func(Integer v) 
{
 return v ; 
}

public static void main(String args[ ]) 
{
 Integer iOb = func(100);
 System.out.println(iOb);
}
}


Output:

100

About Author:
M
Mr. Dubey     View Profile
Founder and CEO of MCQ Buddy. I just like to help others. This portal helps students in getting study material free.