What is actually happenning when we are importing a class of some other pac

Sirs,
I have a doubt which is very basic to java,
I want to import a class say "HashMap" to my class.
If i put import "java.util.HashMap" or "import java.util.*;"
Which will be better ?
If i put "import java.util.*; " will it affect the performance?
What is actually happenning when we are importing a class of some other package to our class
Your help solicited,
Sudheesh K S

Many of your questions of this nature can be quickly answered by a search of prior posts to the forums, like this:
http://forum.java.sun.com/thread.jspa?forumID=54&threadID=631979
And why do you tend to post boldened text? It's harder to read.

Similar Messages

  • What actually happens when we include import?

    My line of thinking is...all the classes that the program needs are already there...so when we include import, does it mean that it simply loads them into memory? Is this the purpose of import? Or am I thinking too simplistic?
    Thanks.

    My line of thinking is...all the classes that the
    program needs are already there...so when we include
    import, does it mean that it simply loads them into
    memory? no
    Is this the purpose of import? nope
    the only purpose of import is to save the lazy progammers that we all are the burden of allways writing the entire qualified class names.
    Or am I thinking too simplistic?naaa
    Thanks.Welcome
    All hail Sun!
    User 384493

  • I have 100  songs on i pod touch. But when i connect it to itunes it only showed 44 songs. What is actually happening and how to fix the problem so that all music in my iphone can be seen in my itunes

    I have 100  songs on i pod touch. But when i connect it to itunes it only showed 44 songs. What is actually happening and how to fix the problem so that all music in my iphone can be seen in my itune

    If they are iTunes purchased music then go to Settings>iTunes and App Store and turn off Show All.
    Next
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • What does 'Actuality' return when checked in the Text Element of WAD.

    Hi All,
    What does 'Actuality' return when checked in the Text Element of WAD?
    Thanks In Advance

    I take back my qs as the qs is not valid anymore

  • How the upgrade to Creative Cloud happens when you are already a signed member of Typekit?

    Hello everybody. I have a signature for Typekit. When I purchase a Creative Cloud the price I had payed is discounted? How the upgrade to Creative Cloud happens when you are already a signed member of Typekit?
    Thanks

    Hi rogeriovelloso,
    This page explains how your Typekit account may change if you sign up for a Creative Cloud subscription:
    http://help.typekit.com/customer/portal/articles/529513-link-an-existing-typekit-account-t o-a-new-creative-cloud-subscription
    Please let me know if you have any other questions, here or at [email protected]!  Best,
    -- liz
    Typekit Support

  • When importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed.

    when importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed. need to figure out why it randomly imports differently, or how to add different file tyoes to multi cam.

    here is one that is imported and stays .mp4. the specs are same as original file before import.
    here is one that has changed somehow during import. specs on original file are same as above, but once it is imported it changes to this in event folder, and others randomly keep the above specs.

  • When I try to play videos on Apple's website, "missing plug-ins" appears. The same happens when I try to play Apple trailers. Other "users" on the same iMac don't have this problem.

    When I try to play videos on Apple's website, "missing plug-ins" appears. The same happens when I try to play Apple trailers. Other "users" on the same iMac don't have this problem.

    Thank You, Thank You, Thank You! Your solution worked straight away. I've been battling with this for weeks'
    Thank you again. :-))

  • Acrobat 8.0 crashes when combining certain JPG files but not some other set of JPG files. Please help

    Question:  Acrobat 8.0 crashes when combining certain JPG files but not some other set of JPG files. why this is happening. Please help.

    IT may be a bug. It may be fixed in Acrobat 9, 10 or 11.

  • Aperture crashes when files are imported

    I am using the Aperture 3 trial currently, and while it starts up just fine, whenever I try to import my iPhoto library Aperture chugs along for a bit, and then crashes. When I open Aperture again, most of my events are there (as projects) but they are almost all empty. A select few appear to have photos in them. If I try to import again, the same crash happens. If I import folders as projects from my pictures folder, it crashes. If I delete the Aperture library and try to import again with a fresh start, it crashes. Right now I really don't know what to do about this, I want to try Aperture, but I can't very well do that without being able to get my photos into it.
    Admittedly, my iPhoto library is rather large (40,000+ photos), but iPhoto can handle this, and I should think Aperture was built for this.
    Thanks for the help!

    I am having a very similar problem. I purchased the full version and get the exact same results. I rebuilt my library using iphoto's rebuild tools and the crash still occurs. I have rebuilt the library using iphoto library manager and the crash still occurs. I am frustrated that I spent 200 dollars and I am unable to import my iPhoto library. Any help would be great.

  • What is actually happening

    OK, I borrowed my brothers Canon ZR60. I'm getting a 4 pin to 6 pin cable from Amazon. Now, when I figure this all out and plug it in, what is actually going to happen? Is the computer actually going to read the tape while it spins (when I'm downloading)? Will I be able to designate different parts (clips) for download (like a digital camera) or is it going to read everything and not stop until it runs out of information? The whole miniDV tape thing confuses me.

    Once you plug your camcorder into the computer, you will be able to control the playback within iMovie. While playing the tape, you'll see what's playing inside the iMovie preview window. You can click the Import button when you get to the spot where you want to capture, then click it again to stop capturing. The tape will play on until you stop it.
    There's also an iMovie preference setting that will detect when you've stopped the camcorder and restarted it later during a recording session. iMovie will then separate at those points into individual clips.
    Once you start to play around with it, you'll see its fairly easy to work with.

  • Settings added when when images are imported

    When I import images into Lightroom3 the images have already been tweaked.  How do I turn off the setting as the images are imported?  Second, when I attempt to send images to Photoshop for editing Lightroom makes a copy, how can I stop this fom happening?

    Two things to avoid that LR applies "tweaking" on import.
    1) Make sure that the <Apply Auto-tone adjustments> box is unchecked. You find it under <Preferences> in the <Presets tab>.
    2) In the Import Dialog on the right hand side, in the panel <Apply During Import>, make sure that <Develop Settings> shows <None>.
    There is no way to avoid making a copy when you open a RAW-file in PS. PS can not save a file as a true RAW-file; there is a Photoshop-RAW but that is not a true RAW-file like the one that your camera creates.Since PS can save your edits only in a different format than true RAW, by necessity a copy has to be made.
    If you have JPG's in LR (or TIFFs or PSD's) and want to edit them in PS, you can choose <Open Original> and then no copy is made. But when you open these as <Edit a Copy with LR Adjustments> then again a copy is made.
    WW

  • What EXACTLY is happening when a signed applet loads in a page?

    I'd like to know what happens when a signed applet is loaded in a page with the Java Plug-in. What methods are called, in which order, what happens when the user denies the applet, etc.
    Any links to resources are also welcome.
    Thanks!!

    Hi there,
    Please go thru the following links. I think they are self explanatory and does not need more elaboraion. These links expalin how the Signed Applet is loaded and how does the Class Loader and Code Verifier make it possible for the applet to work within it's security restriction.
    Here are the links:
    1.http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_how.html
    2. http://ntrg.cs.tcd.ie/undergrad/4ba2.96/group2/applets.html
    For more information about policy files you can check the following link:
    http://www.interex.org/pubcontent/enterprise/jan01/14chew.html

  • Color changes when images are imported

    I read the answer provided earlier by Ian but the reply left one aspect unanswered. Is there any way to turn off that feature and have LR use the info provided by the camera. I generally MUCH prefer what I see before LR works it over.

    Geoff, Leejay, you miss the point.
    LR has big problems converting pictures that have the certain characteristics.
    In this case (and only this that I have noticed) it is when shot with strong red/and or warmer color temperatures.
    It happens with the Eos-1 family and Eos-5.
    It happens (for me) when shot with the said halogen/tungsten (3600k) lights.
    It happens when you try to maintain the the warm tone.
    It happens when you shoot raw.
    The picture quality is "fine" if you colorcorrect the picture to neutral,but the point is, I dont want to do that.
    Phase one and DPP programs does not have problems with such lighting,they both render the tones just right.
    The problem with LR is that I can not acchieve the same results with the inboard engine!
    No matter what tweaking and tinkering, the image just degrades and falls apart.
    Same if you shoot with stronger colored lights,especially in the red spectrum.
    The reason why this IS an issue for me (and 2 other studios that I know well) is that tungsten lights (arris) are used a LOT in fashion photography. The tones achieved with the DPP and PhaseOne are extremely close to what Kodak´s 400X used produce back in the film time, that beloved film..
    Now the photographers and ADs want to reproduce the same tones,and with LR it´s seems to be impossible.
    Now we have to port a another program in the workflow just to produce the desired results.
    Wich is PITA.
    So,in my view,with all respect Geoff and Leejay,stop being such a bloody apologists.
    The problem lies,as I see it, in the LR engine,wich could need some tweaking in that area.
    Otherwise, and with other lights (be it HMI,Kinoflos,flashes) that program is extremely good.
    Or do you suggest that the program is perfect?

  • Lightroom CC isn't including color labels when images are imported

    I've tried this several times, but it doesn't work. Lightroom CC will import metadata and even star ratings, but it won't import the color label data assigned to the images from within Bridge. How can I get that information to be imported?
    In other words, working in Bridge CC I assigned star ratings and color labels to a folder full of JPG files. When I import those files into Lightroom CC, the images, metadata and the star ratings are imported, but no color label data was imported. None of the images have color labels when viewed in LR. They still retain the color labels when I view the files in Bridge CC, but they don't appear in LR.

    I just struggled with this for an hour. Any changes made to labels inside Lightroom 5 didn't show up in Bridge CC after reading metadata from file, and imports into LR5 did not properly show Bridge CC's label colors. Instead, only a tiny white rectangle at the bottom right of each labeled thumbnail showed in LR5.
    Finally figured it out. In the Lightroom 5 file menu up top, go to:
    Metadata --> Color Label Set --> Bridge Default (select this option)
    'Lightroom Default' was previously selected in mine, as I suspect all Lightroom 5 installs are initially.
    Make sure that the names beside each color are identical in both Bridge & LR, or you will still have syncing problems.
    This should fix your problem!

  • PPro, AME, and CUDA: What's Actually Happening Here?

    I bit the bullet and picked up a new Quadro 4K for my Mac Pro.  The videos I'll be making with Premiere Pro will include a scaled-down multi-cam PiP, which the CUDA processors can clearly help with.  However, I'm a bit puzzled by something: what's actually going on here behind the scenes, so-to-speak?  I'm coming at this question from a software/computer geek perspective, not from a video editing one.  I'm sincerely interested in what's going on between PPro, AME, and the nVidia card.
    First off, I asked this question back in July.  At the end of the thread, Todd says that if I queue up the export with AME, then the rendering would be done by the CPU.  Fair enough, but something else is going on with AME and the nVidia card.  If I enable the GPU in PPro and then export it through AME, the AME log looks like this:
    - Source File: /Volumes/Users/jvp/Library/Caches/TemporaryItems/Multi-Cam Test.prproj
    - Output File: /Volumes/Users/jvp/Desktop/multi-cam_1.mp4
    - Preset Used: Custom
    - Video: NTSC, 1920x1080, 29.97 fps, De-interlaced
    - Audio: AAC, 160 kbps, 48 kHz, Stereo
    - Bitrate: VBR, 1 Pass, Target 6.00, Max 10.00 Mbps
    - The source was deinterlaced
    - Encoding Time: 00:20:09
    If, however, I disable the GPU in PPro and export the same sequence through AME, the log reads:
    - Output File: /Volumes/Users/jvp/Desktop/multi-cam-no-cuda.mp4
    - Preset Used: Custom
    - Video: NTSC, 1920x1080, 29.97 fps, De-interlaced
    - Audio: AAC, 160 kbps, 48 kHz, Stereo
    - Bitrate: VBR, 1 Pass, Target 6.00, Max 10.00 Mbps
    - The source was deinterlaced
    - Encoding Time: 01:18:32
    A noteworthy difference in time.  Further, during the first export in AME, the GPU is definitely being used at about 33% or so.  So clearly it's doing something.  What I'm curious to know is: what?  Is it actually doing the rendering of the PiP while AME is exporting the video?  Or... ?
    jas

    Harm Millaard wrote:
    Apart from other effects, the PIP means scaling and scaling is GPU assisted. That could well be a serious determinant for the differences in encoding times.
    Right Harm, I'm certain that the PiP scaling is what's causing the immense difference in exporting (encoding) times.  But what I'm curious to know is: why is it mattering when I punt to AME?  To me, it implies that either:
    PPro is continuing to do some of the work during the export, in the background, even though AME is open and working, or
    AME is actually making use of the video card.
    That's why I'm curious about this and wondering what's going on from a technical perspective.
    jas

Maybe you are looking for