Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6788691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:30:56+00:00 2026-05-26T17:30:56+00:00

Is there a way to compute a Java class’s method’s signature? A signature like

  • 0

Is there a way to compute a Java class’s method’s signature? A signature
like ([Ljava/lang/String;)V represents a function that takes a String[] as argument
and returns void.

What’s the rule to compute the signature?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:30:57+00:00Added an answer on May 26, 2026 at 5:30 pm

    It’s always a set of parentheses enclosing type signifiers for the arguments, one after the other with no commas or anything, followed by a type signifier for the return value after the closing paren. It’s pretty straightforward.

    Here’s a table of type signatures:

    Signature    Java Type
    Z    boolean
    B    byte
    C    char
    S    short
    I    int
    J    long
    F    float
    D    double
    V    void
    L fully-qualified-class ;    fully-qualified-class
    [ type   type[]
    

    Those last two mean that to name a class, you say, for example, Ljava/lang/Object;, and to name an array of (for example) int, you say [I, and an array of array of int is [[I.

    If you wanted to literally compute the signature in Java code based on reflection, it’d be simple enough; just use the table above with rules for handling objects and arrays.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to shutdown a computer using a built-in Java method?
Is there a way to compute efficiently the Fourier transform of the max of
Is there any way to compute length of va_list ? All examples I saw
Is there a way to retrieve system information like MAC Address, computer name, etc.
Is there a way to send a file over sockets in Java? If so
Question: Is there an easy way (library function) to perform a bitwise AND or
Is there any Java library to compute a Basic or Digest Http authentication? Jersey-Client
is there a way to use java to detect which apps are running in
In java, is there a general way to enforce compile-time compilation? In a programming
Is there a way to open My Computer Properties from C# Windows Application? For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.