Why interface property be default final whats the use of that

can anybody explain me
when i declared a variable inside the interface its always public static final.
why its static and final what the use of theat. its set of rule or it has any reason.

Sir,
You do not have much choice:
From the JLS (9.3):
"Every field declaration in the body of an interface is implicitly public, static, and final. It is permitted to redundantly specify any or all of these modifiers for such fields."
Note from this though that you do not have to explicitly declare a field in an interface as public / static / final if you dont want to - if you leave it out the field is implicitly declared with these attributes.
So you could wite:
public interface SirInterface {
  public int HeIsActuallyPublicStaticFinal = 1;
}

Similar Messages

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Whats the use of sap queries

    whats the use of sap queries

    Hi,
    http://www.sap-img.com/abap/what-is-sap-queries.htm
    http://www.informit.com/articles/article.asp?p=664660&rl=1
    def sap query
    http://help.sap.com/saphelp_bw21c/helpdata/en/f1/0a5625e09411d2acb90000e829fbfe/content.htm
    In HR
    You can use SAP Query in HR to report on HR data.
    how to create sap query
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb4145455611d189710000e8322d00/content.htm
    for maintain SAP query in HR
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb42cb455611d189710000e8322d00/content.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb455f455611d189710000e8322d00/content.htm
    If you want to create InfoSets for HR, you can use logical databases PNP, PAP, and PCH . The database you must use to create your InfoSet depends on the component in which the data you want to report on is stored.
    Creating InfoSets
    The maintenance procedure for HR InfoSets differs from the procedure described so far in this section inasmuch as HR data fields are grouped together in infotypes. To set up an InfoSet for the HR application, proceed as follows:
       1. On the initial screen for maintaining InfoSets, enter a name for the InfoSet and choose Create.
       2. On the next screen, enter a name for the InfoSet and select one of the HR logical databases in accordance with your reporting requirements.
    Customer infotypes can be created on all HR logical databases. In each individual case, therefore, you must decide which database to select so that you can report on customer infotypes.
    This screen enables you to enter an authorization group. All of the queries that are subsequently created using this InfoSet can only be executed by persons who have this authorization group.
       3. Choose .
    This takes you to the Infotype Selection for InfoSet  screen. You now have the option of creating field groups and assigning fields as required for non-HR InfoSets. Field groups that correspond to infotypes and already contain fields, however, are always created for HR InfoSets. The field groups are displayed in an overview tree in the top right section of the screen.
    The infotypes that you included in the InfoSet are displayed in an overview tree on the left of the screen. The infotype fields that are already included in field groups are displayed in a different color, and the field group ID is displayed.
    In the standard system, a field group is created automatically for each infotype that you included in the InfoSet (a field group corresponds to an infotype).
    In the standard system, each field group contains the infotype-specific fields. To ensure that working with the InfoSet is as easy as possible, you are advised to restrict your use of fields in each field group to those you really require. This means you should remove fields that are not required.
    An infotype's fields must only be assigned to the pertinent field group. Make sure this assignment is correct. If the assignment is incorrect, the InfoSet could be rendered unusable.
    When an InfoSet is created, the following fields are transferred automatically to the first field group:
    Logical database PNP Personnel number
    Logical database PAP Applicant number
    Logical database PCH Object ID, plan version, and object type
       6. Determine the fields that must be included in the field groups of your InfoSet. If you require further information, see
          Assigning Fields to a Field Group.
    If you want, you can change the default sequence of field groups and fields as required using drag & drop.
       7. To save the InfoSet, choose .
       8. To generate the InfoSet, choose .
          On the Change InfoSet (InfoSet name) screen, you can choose Edit ® Change infotype selection to add more infotypes to the InfoSet, or to remove infotypes from the InfoSet. Remember to regenerate the InfoSet afterwards.
          This screen also enables you to update InfoSets if, for example, the system contains new additional fields for specific key values. To do so, choose InfoSet ® Additional functions ® Update additional HR fields.
       9. Go back to the initial screen for InfoSet maintenance.
      10. Choose User group assignment.
      11. Select a user group, and save your entry.
    Please reward points.

  • Whats the use of assigning price list to site

    hi ,
    Why we assign price list in site (wb01) merchandise category?is that price list the same which i assign in "assign pricing type/reference site to organisational levels" in sales price calculation.explain me whats the use of assigniing the price list in siter(wb01) merchandise category which we will find on the top screen inside the site master
    regards
    krish

    Hi Krish
    Price list are assigned to article through MC at site master, no where else we define price list with article. When you run WPMA to transfer article price to stores, system will look at assigned price list with MC at site master then transfer the price.
    Price list assign at organisational level will help system to find which pricing procedure to be used and which store Net purchase price to be taken for calculation.
    Best Regards
    Swami

  • Option+T (What the heck does that do?)

    Option+T (What the heck does that do?) I've looked around on the internet and the boards and haven't found what the purpose is. Just curious. Thanks Jeremy.

    If you are curious why don't you just highlight the timeline > hit option + T (the timeline gets sexier ) > select a clip > drop a filter on it > set keyframes to modify the filter overtime or use time remap and option click anyware in the time remap green ramping line to set a keyframe and keep your curious eye on the timeline and find that all those keyframes becomes visible and editable in the timeline?

  • What the "use JSP presentation" check box does?

    Can someone tell me what the "use JSP presentation" check box does? (can't find any documentation)
    When I set "Implementation type" to "BPM Object Interactive Call' if a check "use JSP presentation" instead of "Use BPM Object Presentation" and I enter a JSP name can I cause the process to start a JSP ?

    Hello,
    The option is intended to use a JSP instead of a form for a BPM Object interactive call. This means that you have to prepare your custom JSP, add a special tag library provided by Fuego and "mark" your html tags deciding which of them will become the attributes for the instance of your BPM Object.
    Whitin the page you can also call some methods of your objects.
    Finally you can post back the data and automatically update your object in the process. There is no much documentation and it's even quite old. Take a look here: [http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html]
    The JSP will be shown as a normal interactive activity popup window. You can customize it as you like, even adding some client side script.
    HTH
    G

  • Why is wired memory less than what's used?

    why is wired memory less than what's used?

    A whole lot of the stuff you use can safely be paged out and back again with impunity. Wired memory is memory that cannot be paged out to Disk.
    Using Activity Monitor to read System Memory and determine how much RAM is being used

  • HT1386 I synced (updated) my iphone to itunes and some songs were deleted from my iphone playlist on my phone.  On the computer, a circle is next to the song and the title faded out.  What the heck is that all about and how do I get my songs back onto my

    I synced (updated) my iphone to itunes and some songs were deleted from my iphone playlist on my phone.  On the computer, a circle is next to the song and the title faded out.  What the heck is that all about and how do I get my songs back onto my phone playlist?  Never happened before.  My software is up to date?

    http://support.apple.com/kb/HT2519

  • HT1918 I am receiving charges and would like to know if you can tell me what the AppleID is that is buying the songs

    I am receiving charges and would like to know if you can tell me what the AppleID is that is buying the songs

    We're just fellow users here and have no access to any information about your account. Nor in most cases will Apple be able to give you such information. If your credit card is being charged for purchases that are not showing in your iTunes Store account's Purchase History, contact your bank and report the charges as fraudulent.
    Regards.

  • Whats the use of 'Maximum Councurrency' in File Receiver adapter?

    Hi All,
            Whats the use of 'Maximum Councurrency' in File Receiver adapter?
    Xier

    Hello,
    Refer the  below thread and check it out my reply . I gave for JDBC adapter, but the concept is same for File/JDBC.
    Re: JDBC Adapter - One Connection prior to SP20
    Best regards,
    raj.

  • Ok i have been trying to download albums, songs, apps, etc. and my itunes keeps asking me for the security question and for the life of me i cant remember the answers. I dont know what the email is that receives the question reset.

    ok i have been trying to download albums, songs, apps, etc. and my itunes keeps asking me for the security question and for the life of me i cant remember the answers. I dont know what the email is that receives the question reset. is there anything i can do to fix this or am i screwed?

    If you have music that was purchased on different iTunes accounts than the one you use, then you must provide the password, otherwise the tunes are not considered yours.  You can turn off iCloud and just use the usual USB sync method.  But I wonder whether you'll have the same problem?

  • Whats is table type ? whats the use of it in abap?

    hi,
    i am ahmed abap fresher,
         i want to know what is table type and whats the use of it. at what point/situation we utilize this table type.

    Hi Ahmed ,
    Table is apart of data dictionary.
    Table is a sort of container where we store data.
    For eg. you want to store customer record in the database.Now you will store that customer record against specific fields of the applicable table.
    You can create or see table by means of transaction code se11.
    There are 3 typesof tables available in SAP ABAP:
    1. Transparent table
    2. Pool table
    3. Cluster table.
    Transparent Table:
    A physical table definition in the database for the table definition which is stored in the ABAP Dictionary for transparent tables when the
    table is activated. The table definition is translated from the ABAP
    Dictionary to a definition of the particular database.
    Pooled table:
    Pooled tables can be used to store control data (e.g. screen sequences,
    program parameters or temporary data). Several pooled tables can be
    combined to form a table pool. The table pool corresponds to a physical
    table on the database in which all the records of the allocated pooled
    tables are stored.
    Cluster table:
    Cluster tables contain continuous text, for example, documentation.
    Several cluster tables can be combined to form a table cluster. Several
    logical lines of different tables are combined to form a physical record
    in this table type. This permits object-by-object storage or
    object-by-object access. In order to combine tables in clusters, at
    least parts of the keys must agree. Several cluster tables are stored in
    one corresponding table on the database.
    See the documetation at:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
    Reward if useful ...
    Regards ,
    Shankar GJ

  • WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    Subhash,
    You create and distribute a model in BD64. The details of that are stored in this tables.
    A model gives you the details of the sender / receiving systems and what are the message types that are getting transferred between these systems.
    Regarding the IDOC segments issue, can you explaing how are you triggering the IDOC and which message / idoc type you are dealing with.
    Regards,
    Ravi
    Note :Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Any one know ... whats the cheapest laptop that will run AE cc in the uk

    any one know ... whats the cheapest laptop that will run AE cc in the uk

    unfortunately system requirements, (in general), are usually the MINIMUM required to run the program. the more complex your intended use of the software is, the more you need to consider beefing up the 'system requiremets'.
    let's face it:
    After Effects CC (2014) system requirements and language versions
    Windows
    Intel Core2 Duo or AMD Phenom II processor with 64-bit support
    is a joke to start with....

  • WHAT IS PBJECT DOCUMENTATION? WHERE YOU CAN DO IT? WHAT IS THE USE OF THAT?

    WHAT IS PBJECT DOCUMENTATION? WHERE YOU CAN DO IT? WHAT IS THE USE OF THAT?

    I don't believe you can do that on an iPhone. But you can on your computer using apps such as Photoshop.

Maybe you are looking for