Thursday, June 18, 2026
HomeLanguagesJavaModifiers parameterModifiers() method in Java with Examples

Modifiers parameterModifiers() method in Java with Examples

The parameterModifiers() method of java.lang.reflect.Modifier class is used to get an integer value together with the modifiers of source language that can be applied to a parameter.

Syntax:

public static boolean parameterModifiers()

Parameters: This method accepts nothing.

Return: This method returns an int value OR-ing together the source language modifiers that can be applied to a parameter.

Below programs illustrate parameterModifiers() method:
Program 1:




// Java program to illustrate
// parameterModifiers() method
  
import java.lang.reflect.*;
  
public class GFG {
  
    public static void main(String[] args)
        throws NoSuchFieldException,
               SecurityException
    {
  
        // get Modifier
        // using parameterModifiers()
        int result
            = Modifier.parameterModifiers();
  
        System.out.println(
            "Modifiers: "
            + Modifier.toString(result));
    }
}


Output:

Modifiers: final

Program 2:




// Java program to illustrate parameterModifiers()
  
import java.lang.reflect.*;
  
public class GFG {
  
    public static void main(String[] args)
        throws NoSuchFieldException,
               SecurityException
    {
  
        // get Modifier using parameterModifiers()
        int result = Modifier.parameterModifiers();
  
        System.out.println("Int Value: "
                           + result);
    }
}


Output:

Int Value: 16

References: https://docs.oracle.com/javase/10/docs/api/java/lang/reflect/Modifier.html#parameterModifiers()

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32516 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6898 POSTS0 COMMENTS
Nicole Veronica
12014 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6965 POSTS0 COMMENTS