What happens if a program contains un-necessary imports?

Hi,
If a program imports unnecessary classes/packages, will it effect the performance of the program?
for example:
import java.awt.*;                           // nothing to do with the classes of java.awt package
class Test14
     public static void main(String[] args)
                    System.out.println("default");
}Thank you for your consideration.

this example will help you to understand
this is the source code
import java.util.Vector;
import java.awt.image.BufferedImage; // this is unnecessary import
import java.io.InputStream; // this is unnecessary import 
public class Test {
    Vector vect = new Vector();
}and this is decompiled code
import java.util.Vector;
public class Test
  Vector vect = new Vector();
}do you see the difference?

Similar Messages

  • What happens when a program name is typed on the command line?

    I mean I know what HAPPENS but I need to know the sequence of events. How would I describe it?
    i.e. java MyProg

    What is this? Are you taking a take-home exam on basic computer operation? You're asking very similar questions about broad things.
    Anyway:
    1) the shell parses the command line. it gets a sequence of tokens which are basically just individual strings
    2) the shell identifies which tokens on the command line are executables, and which are arguments to those executables. It also figures things out like how to chain the output of one program to the input of another, although this doesn't apply in the example you gave. In your example, "java" is the executable and "MyProg" is a string to pass to the executable as an argument.
    3) The shell then searches for the actual program file corresponding to the token that refers to an executable. The shell looks at the PATH environment variable to find a list of directories; it then looks in each directory until it finds the program file. So the program file here would be "java.exe" on a windows system.
    4) It then spawns off a new process to run the java program, passing the MyProg string to it as an argument.
    Does that help?

  • What happened to the Light Room red screed import problem thread?

    I was about to purchase Light Room to use with my elements 11 and found this thread very interesting. Where did it go?

    big sandy lake
    I have just added some findings on the red frames of the .mp4 slideshow from Lightroom 5.4 Slideshow Module, as seen in Premiere Elements 10 Windows.
    http://forums.adobe.com/thread/1453087?tstart=30
    I can confirm the red frames seen in Premiere Elements 10 by LarryER when he edits his .mp4 slideshow (1080p .mp4 Lightroom 5.4   Slideshow Module).
    But, I do not see this in Premiere Elements 10 when I am editing my own .mp4 slideshow (1080p .mp4) created in my tryout Lightroom 5.4 Slideshow Module.
    ATR

  • I just did an Time Capsule firmware update and now my Time Capsule is dead.  What happened?

    I just did a Time Capsule firmware update and now my Time Capsule is dead.  What happened?

    tresbaileys wrote:
    it may be important to note that when I put my ear to the box I can still hear the HD spinning (although no lights are lit and it doesn't show in the airport utility).  Ideas??
    That is very bad.. how old is it??
    The Gen4 TC can die this way.. it is not usual but it happens.
    Leave it for several hours to cool off. Do a factory reset immediately when you try to restart it.
    The Factory Reset.
    Power down the TC.
    Hold in reset. and keep holding it in. Be Gentle! It is a tiny surface mount switch with a plastic lever.. Attempting to push it out the other side of the TC will not make the switch turn on better.
    (I fix TC and have several reset levers bent over and jammed or broken off).
    Power on the TC.. remember with the reset held in.. this needs three arms.. a friend or power switch you can get to with your feet..
    Keep holding in reset for about 10sec until the front LED flashes rapidly.
    Release reset and wait .. the boot will be slow as it deletes previous setting.. only from router side and pulls out the factory defaults. No files are deleted on the hard disk.. but the name of the TC may change.
    Tell me exactly what the LEDs do throughout this process.
    Both the main one at the front and the LED on the ethernet ports which should all flash during bootup.
    If it is less than a year.. of course Apple will replace under warranty.. 2 years in some places.. Europe .. places with stronger consumer laws. If you have applecare on a computer it should still cover the TC.
    I kind of doubt you are going to get this going again... but we can try.

  • I downloaded and installed Illustrator CS6 in Feb, 2014.  Now, when I try to open the program it is asking me to sign in for a trial use.  What happened to my software and how can I reinstall it?

    I downloaded and installed Illustrator CS6 in Feb, 2014.  Now, when I try to open the program it is asking me to sign in for a trial use.  What happened to my software and how can I reinstall it?

    CS6 or Creative Cloud Reverts to Trial Mode
    http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

  • What's the best program for making a header containing rollover navigation links?

    I have all CS4 programs and I'm looking to make a header that contains an interactive rollover nav bar. I want the bar to be located within the header. What is the best program for creating the header and rollover buttons. I'm aware i could manipulate the images in other programs, but placement and rollover button creation is what I'm looking for. Thanks. I'm thinking maybe flash or fireworks?

    Spry can do this for you.  See some samples here:
    http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html
    Or there are commercially available menu systems from the likes of companies like Project Seven, whom I would personally recommend:
    http://www.projectseven.com/

  • Hello, I got the plan for individuals of 10 dolars monthly. Now my trial period pf photoshop finished, so the program does not open it ask me for a license number, and I have not recived that number... so now I what happening is I am paying 10 dolar per m

    Hello, I got the plan for individuals of 10 dollars monthly. Now my trial period of Photoshop finished, so the program does not open it ask me for a license number, and I have not received that number... so now I what happening is I am paying 10 dollar per month and my Photoshop does not work. Could somebody let me know how I go from the trial to the real Photoshop?

    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • My Question is: I have a Lightroom 5 software buyed single on my MAC. If now I buy a CC Pack with Lightroom and Photoshop...what happened? How I can install AGAIN a other version of lightroom 5 ?! and this is necessary because the version included in pack

    My Question is: I have a Lightroom 5 software buyed single on my MAC. If now I buy a CC Pack with Lightroom and Photoshop...what happened? How I can install AGAIN a other version of lightroom 5 ?! and this is necessary because the version included in pack has a mobile function that my actual version don't has.  Thanks to help.
    Can live two version equal of lightroom on same MAC ?
    mmm .... I Doubt...
    Suggestion.. ?

    My Question is: I have a Lightroom 5 software buyed single on my MAC. If now I buy a CC Pack with Lightroom and Photoshop...what happened? How I can install AGAIN a other version of lightroom 5 ?! and this is necessary because the version included in pack has a mobile function that my actual version don't has.  Thanks to help.
    Can live two version equal of lightroom on same MAC ?
    mmm .... I Doubt...
    Suggestion.. ?

  • When I open my premiere elements 9, I can't see the workspace, I have to restart the program many times until it works, what happens??

    Somebody can help me, the program was fantàstic, but a few months ago, when I open my premiere I can't see the workspace, the program doesn't show me an error message, but I have to restart Windows several times until I can work normally, what happens, adobe premiere have some problems with other programs installed? I don't understand, I have a serial number, I buy a dell with the program installed, with Windows 7.
    Can somebody help me, it's very important for me this program and I use it a lot

    mcaro5
    Thanks for reporting what worked for you with regard to your Premiere Elements 9 issue. Your results will be helpful to all those who find themselves in the same situation that you encountered. It is good that the suggestion worked for you also since often problems with the same symptoms can (often do) have different causes and fixes.
    Best wishes as you move forward with your Premiere Elements projects.
    ATR

  • My recently purchase iMac came with pre-installed operating software but no backup disks. What happens if I find it necessary to re-install?

    Having ditched Windows after years of frustration I recently bought an iMac with Lion pre-installed. While not necessary at this tme there were no installation disks sent with the purchase. What happens should I find it necessary to reinstall the operating system?

    No. You do NOT have to buy Lion again.
    If you replace your HDD or erase the recovery partion, it will download and install lion from Apple' servers.
    See:
    http://support.apple.com/kb/HT4718
    Quoute:
    If you happen to encounter a situation in which you cannot start from the Recovery HD, such as your hard drive stopped responding or you installed a new hard drive without Mac OS X installed, new Mac models introduced after public availability of OS X Lion automatically use the Lion Internet Recovery feature if the Recovery HD (Command-R method above) doesn't work. Lion Internet Recovery lets you start your Mac directly from Apple's Servers. The system runs a quick test of your memory and hard drive to ensure there are no hardware issues.
    /Dennis

  • What happens when credit card program is discontinued?

    It should not have any effect. Many credit files have closed accounts on them, if the cardholder or the issuer decides to terminate the credit relationship.When a term loan is paid off, that also goes "closed" and begins to just show history. If the one card that gets closed, is the only card the cardholder has, the only credit relationship that the cardholder has with any bank or company, then that would cause issues for the credit file, but usually, by the time a bank like Comenity gets around to closing or discontinuing a card, the cardholder has gotten one or several other cards from stores or banks, so it should be no issue.

    Hello All, I'm curious as to what happens to your score if a credit program is discontinued.  Example Comenity Banks issues many credit cards and noticed that many on their list have been discontinued.  Example Dots and just recently Vitacost.  How does this affect your credit score when it is completely out of the control of the consumer?

  • What happens after download complete? I'm not seeing a program, an icon or any next steps...

    What are the next steps to open the trial software after the Download Assistant has been installed?  No instructions for next steps!

    Biggly2000 what happens if you initiate the download again?  You are directed to choose the download location at the time of download.  If you have chosen a different location such as an Application folder or Program Files then the installation files will not be in your downloads folder.
    I would recommend reviewing Troubleshoot Adobe Download Assistant for several common errors which occur when using the Adobe Download Assistant.

  • HT1926 Tried to download itunes update 11.1.4. At 99% IE said, "This program contained a virus and was deleted."  Anyone else with this problem?  What do I do?

    Tried to download itunes update 11.1.4. At 99% IE said, "This program contained a virus and was deleted."  Anyone else with this problem?  What do I do?

    Hi JEOQ,
    Thanks for visiting Apple Support Communities.
    You may find the information and steps in this article helpful with downloading iTunes:
    iTunes: Downloading iTunes for Windows using Internet Explorer
    http://support.apple.com/kb/ts3212
    Best Regards,
    Jeremy

  • I associate Magnet links to my Vuze program and click "remember my choice" but it does not keep it assoctated anymore. What happened

    Every time I click on a magnet link is asks for a program association i set Vuze and click remember. It used to keep the setting but it does not anymore and I have to go through it every time I click on a link. What happened? I think it was it the last update when this started happening but I am not sure. Is there anyway I can manually input the choice so it stays there?

    Reset your preferences
    Hold down CTRL + SHIFT + ALT keys then start photoshop. Window pops up choose yes.

  • What happens if I decide to cancel my CC Photoshop Photography Program AFTER 12 months are over?

    In the "Terms and conditions," it states under "Renewal," "After the first 12 months, we will automatically renew your contract based on the current price of the offering."
    I think I understand that the statement means that the monthly price of $9.99 is subject to change after the contract is over. I just want to make sure basically what I ask in my topic: what will happen if we decide to cancel after the 12 months are up? Is this program something we'd have to pay for forever?
    What happens if we decide to stay in the program after 12 months? Will we keep getting charged monthly or will we eventually not be asked to pay for it if we've, let's say, cumulatively "paid up" for the softwares?

    What happens if we decide to stay in the program after 12 months? Will we keep getting charged monthly or will we eventually not be asked to pay for it if we've, let's say, cumulatively "paid up" for the softwares?
    You never stop paying for subscription software. You will keep getting charged monthly. It's not a hire purchase agreement where you own the software after paying a set amount for an agreed time period. Neither is it a lease where you pay a residual amount to own the software at the end.
    You will keep paying the monthly fee for as long as you want to use the software. If you want to use the software forever then you keep paying forever.
    On the plus side, you get all updates and upgrades for free as part of your membership.
    When you stop paying the monthly fee, you lose the use of the software.

Maybe you are looking for

  • Overide XML Report Publisher renaming?

    Anyone know if it is possible to prevent the XML Report Publisher report from renaming the concurrent request on completion. This makes it very difficult for users to understand what requests are, especially when they are automatically submitted from

  • Importing "Hi 8" footage

    I have a Sony Digital 8 camcorder that I've been using with FCE 2.0.3 for a long time now. Not the highest-end product in the world but it works great for my projects. Today for the first time I tried to use the Digital 8 camcorder to import into FCE

  • Aperture 3 not referencing photo files after reload

    Using Aperture 3.  Scrubbed hard drive and restored system.  Moved files back from backup Reloaded A 3 from original disk, it remembered categories, albums, etc. but not thumbnails.  Photos stored as files not in Aperture library. help Aperture find

  • Using wliconsole's process instance monitoring and audit trail

    Hello, I have couple of questions about wliconsole's process monitoring capabilities to be able to use in real production environments. 1. Is it possible to add some custom data to the Process Instance Summary table? For example, we would like to sho

  • Transition problems

    Hello Friends, I recorded 80 hours of HDV on miniDV through my CANON XL H1. I was shooting in HDV 1080i x 30. When I went to capture, all was well. I used I Movie HD 6 and added 2 transitions (fade in and cross dissiolve) as well as a title. When I t