The runtime and the compile-time

Hello,
I am a beginner of java,I want to know something about the runtime and the compile-time.Please explain them to me.
Thanks very much!

Hi,
Consider 2 variables in a class
public class A
         int i = 10;
         final int j = 20;
      public static void main (String a[])
            System.out.println ("Value of i = " + i);
            System.out.println ("Value of j = " + j);
}This is compiled and the compiled class will look like:
public class A
         int i = 10;
         final int j = 20;
      public static void main (String a[])
            System.out.println ("Value of i = " + i);
            System.out.println ("Value of j = " + 20);
}The difference is that the compile time variables are determined and replace by Java where as the variables like i are only executed or processed when the program runs.
This is one example. There are multiple examples.
Thanks and regards,
Pazhanikanthan. P

Similar Messages

  • Mofcomp.exe failed, delete the classes and retry compiling, 0x8004400a unexpected token at file scope, Primary DP will not validate

    I have SCCM 2012 R2 CU3. Before when I've had DP problems it was always with secondary DPs. Now I've got an issue with my primary DP. Content will not validate on the main DP, called DP1. In Monitoring Distribution Point Configuration Status there are repeated
    errors about "Failed to validate package ABC12345\\fqdn". On the site server in distmgr.log this entry repeats over and over:
    "Mofcomp.exe failed, delete the classes and retry compiling E:\program files\microsoft configuration manager\bin\64\smsdpprov.mof
    Failed to compile MOF file. Error code 2."
    The problem is I don't know what classes it's talking about, nor how to delete them, nor can I find anything directly applicable about this error. I did run "mofcomp.exe smsdpprov.mof" anyway but I get the error "error syntax 0x8004400a: unexpected
    token at file scope. Compiler returned error 0x8004400a."
    This DP1 was working fine until a few days ago. We haven't made any upgrades/changes to the server either.
    We sent a package just to DP1 and it did deploy the content, so it appears that it just can't validate.
    Thanks for any help.
    Ben JohnsonWY

    Hi,
    About the error in Mpcontrol.log, you could try to uninstall the MP, reinstall IIS components, then install MP to see if it can resolve this issue.
    If not, please have a look at the following blogs.
    Support Tip: ConfigMgr 2012 Management Point fails
    with a 500 error after working fine for a short period of time
    SCCM MP Internal Server Error ISS Call to HttpSendRequestSync
    failed for port 80 with status code 500
    From you description above, you reinstalled the DP. Did you reinstall the IIS components during the DP reinstallation? If not, please try to reinstall the IIS components.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • My iPhone rejects my passcode when I enter it the first and the second time

    My iPhone rejects my passcode when I enter it the first and the second time. Why?

    Is it random? Does it occasionally accept the passcode, or does the passcode seem to be changed?
    See Kappy's list on how to deal with passcode problems:
    Re: Passcode being rejected   https://discussions.apple.com/message/23376400#23376400

  • I make Rest for iPad, and now every time i open it , i chose the country and the network  and tells me he works the activation and then tell me the iPad could not be activated, try again what can i do

    i make Rest for iPad, and now every time i open it , i chose the country and the network  and tells me he works the activation and then tell me the iPad could not be activated, try again what can i do

    Those are the instructions for your computer's iTunes (i.e. using the Store menu at the top of your computer's iTunes and selecting 'View My Account' on it). If you are doing it on your iPad then are you following the instructions for iOS devices :
    To unhide your purchases
    Depending on the content type, open the App Store, iBooks, or iTunes Store on your device.
    Scroll to the bottom of the main page.
    If you're not already signed in, tap Sign In.
    Tap your Apple ID name, then tap View Account.
    Scroll down on the Account pane, and tap Hidden Purchases.
    Locate the item you would like to unhide then tap the Unhide button.

  • I have purchased apps in the past and now every time I download a new app my IPad notifies me that they cannot be purchased at the time. For example, tap tap revenge and 11 others cannot be purchased at the time. How can I get rid of it?

    I have purchased apps in the past and now every time I download a new app my IPad notifies me that they cannot be purchased at the time. For example, tap tap revenge and 11 others cannot be purchased at the time. How can I get rid of it. Can anybody help?

    The application iExplorer may be useful in your situation. Read these links below
    I found this in another long discussion (on the ASC site) about this very same problem that you are having.
    http://www.blog.gleff.com/2012/03/app-store-unable-to-purchase-fix/
    This is the discussion.
    https://discussions.apple.com/thread/3681763?start=45&tstart=0

  • I have an iMac and I am running out of disc space. I am considering an external drive to house my iTunes library. If I buy a second drive to operate as a back up will time machine back up the disc on the IMac and the external drive with the iTunes library

    I have an iMac and I am running out of disc space. I am considering an external drive to house my iTunes library. If I buy a second drive to operate as a back up will time machine back up the disc on the IMac and the external drive with the iTunes library?

    If you have a considerable photograph and/or movie collection you may want to consider off loading those to the EHD too. Here are Apple's article showing how handle iTunes & iPhoto libraries.
    iTunes: library on EHD
    iPhoto: How to move the Library to EHD
    Roger

  • How to configure the runtime and consolidation for a track in CMS.

    How to configure the runtime and consolidation for a track in CMS.
    I can see the track exists in CMS but the same doesnt pull up in the NWDS in the development configuration perspective.
    I compared the given track with the one which gets pulled up in NWDS. Theres something called runtime system and consolidation which isnt defined for the track which is invisible.
    Please advise , what are these required for. And how can we configure the same.

    The runtime systems are defined for a track to setup the Transport path for any code changes....the Consolidation system is usually defined as a Virtual system for the track and used for comparison and fixing any broken or Dirty DC's ....that means it's not used as a Runtime System for Deployment as compared to DEV,QAT and PROD used for Deployment...
    Hope it helps..
    Regards,
    Shikhil

  • Can i see the name and the nickname at the same time

    Can I see the name and the nickname at the same time when Iphone 4 is ringing?
    Sometimes i don't remember somebody's name, so i want to see the name and nickname when phone is ringing.

    i download an app called call informer on my Android phone, it can display nickname, company name at the same time. i don't know if IOS has similar app.

  • Save the file and give date & time stamp

    1. Reading the Excel file from the selection screen as a parameter.
    2. Using F.M. ALSM_EXCEL_TO_INTERNAL_TABLE reading Excel file into
        Internal table.
    3. Implementing the Business Logic.
    4. Move output to Final Internal table.
    5. Final internal table should generate a Flat file. By using GUI_DOWNLOAD.
    6. That flat file should be saved with the name and location given in the Excel.
    7. When ever I run the program output file will generate in the same location but with date and time stamp. Because I’m running the program for range of employees say initially I run for 1 – 10,000 employees next 10,001- 20,000 like that.
    Whenever I run for 2nd time it will overwrite the previous output, that’s the reason I’m using date and time stamp.
    Eg:
    PERSONAL Numbers              Name                                         Location
    00000001                 xxxxx-24.04.2007-10.30          C:\        
    00000002                 xxxxx-24.04.2007-10.35
    00000003                 xxxxx-25.04.2007-10.40
    00000004                                  xxxxx-25.04.2007-10.30
    Can any one help me how to save the file and give date & time stamp through hardcode?
    please help me in this issue.

    I am not clear with your problem. Based on the understanding of your question,
    there  can be two cases.
    1- U want to insert time stamp in the output file.
    2- Time stamp is already there, u just have to solve the overwriting issue.
    If your question goes with option 2, You can make use of import parameters
    <b>CONFIRM_OVERWRITE</b> : Which will ask for confirmation before overwriting.
    <b>APPEND</b> : which you can choose either to append the data to the existing file or overwrite it.
    Please inform if the issue is not resolved.
    Message was edited by:
            BINU RAJ BINU

  • I receive daily emails from the NY Times, which I read from my Ipad. Some of the emails will show all of the stories available, and some will only show a few lines in the body and the rest of the email is blank. Any ideas of what I need to do to fix this?

    I receive daily emails from the NY Times, which I read from my Ipad. Some of the emails will show all of the stories available, and some will only show a few lines in the body and the rest of the email is blank. Any ideas of what I need to do to fix this?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.

  • The date and the time of printed of purchase order

    Hi,
    Wich field can me watch the date and the time of printing document like purchase order
    Thanks in advance

    Dear,
    CreateDate:Print date in OPOR
    DocTime is Print Time in OPOR

  • I have agreed and accepted the terms and conditions multiple times

    I have agreed and accepted the terms and conditions multiple times and I am still being asked to accept. All I want to do is watch the new episode of Glee and I am highly considering doing so illegally or getting a ******* hulu-plus account because iTunes for some reason does not want me to purchase anything. I have been playing along in this treacherous cycle for a ******* half-hour. How do I make this stop?

    Hello ms450,
    I would report an issue with the purchase directly to the iTunes Store support with this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Cheers,
    Sterling

  • My iphone calendar keeps changing the alert and second alert times I put in

    Ever since updating to 7.0.2, my Iphone calendar keeps changing the alert and second alert times I input for an event to different times. Why is it doing this and how can I fix it?

    Are you syncing your phone with iTunes and then with iCloud? This can cause duplicates. Sync with one or the other, but not both.

  • Hello guys,My first time in community.my problem is that my SIM card was working ok and from today at the left of the screen up shows that is searching for the sim.I contacted the carrier and the SIM card shows that is working.Any suggestions?

    Hello guys,My first time in community.my problem is that my SIM card was working ok and from today at the left of the screen up shows that is searching for the sim.I contacted the carrier and the SIM card shows that is working.Any suggestions?

    Hey NicolasZen,
    Thanks for the question and welcome to the Apple Support Communities. I understand that you are experiencing issues with “No Service” or “Searching” on your iPhone. The following resource provides some great troubleshooting steps that you may wish to try:
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/TS4429
    Your iPhone may have one of these symptoms:
    - iPhone displays "No Service" or "Searching" in an area of good coverage
    - iPhone doesn't regain service when returning to an area of coverage
    Resolution
    If you encounter either of the above symptoms on your iPhone, follow these steps to attempt to resolve the issue. Test after each step.
    1. Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    2. Turn iPhone off and then on again.
    3. Remove the SIM card and verify that it's a valid, carrier-manufactured SIM. Also verify that it isn't damaged, worn, or modified. Then reinsert it.
    4. Check for a carrier-settings update. Connect to a Wi-Fi network. Then tap Settings > General > About. If an update is available, iOS will ask you if you want to install it. If Wi-Fi isn't available, connect your device to iTunes.
    5. Update your iPhone to the latest version of iOS.
    6. Reset network settings by tapping Settings > General > Reset > Reset Network Settings. This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    7. Restore the iPhone.
    Thanks,
    Matt M.

  • I have just created a new playlist, at the same time I have updated the ITunes software and that of my ITouch. My problem is that today I have been trying to edit the playlist and the edit playlist is greyed out please help

    I have just created a new playlist, at the same time I have updated the ITunes software and that of my ITouch. My problem is that today I have been trying to edit the playlist and the edit playlist is greyed out please help.
    I have been in preferences and checked manually edit etc and still no joy. I must be missing something.
    Susan

    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

Maybe you are looking for