What's the difference between a not-initialed object and a null object

hi guys, i wanna know the difference between a not-initialed object and a null object.
for eg.
Car c1;
Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
1.so c2 is not refering to any object, so where do we put the null?in the heap?
2.as no c2 is not refering to any object, what's the difference between c2 and c1?
3.and where we store the difference-information?in the heap?

For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
You can have (never used, so compiler doesn't care):
public void doSomething()
   Car c1;
   System.out.println("Hello");
}or you can have (definitely initialized, so doesn't have to be initialized where declared):
public void doSomething(boolean goldClubMember)
   Car c1;
   if (goldClubMember)
       c1 = new Car("Lexus");
   else
       c1 = new Car("Kia");
   System.out.println("You can rent a " + c1.getMake());
}

Similar Messages

  • What is the difference between Safari 5.1.7 and 5.1.10? I can not log on to my website, so that their customer service has said that they are using Safari 5.1.7, and I use 5.1.10 (which I have installed on my computer, Mac)

    what is the difference between Safari 5.1.7 and 5.1.10?
    I can not log on to my website, so that their customer service has said that they are using Safari 5.1.7, and I use 5.1.10 (which I have installed on my computer, Mac)

    Might be the security fixes >  Safari 5.1.10 for Snow Leopard

  • What is the difference between component(Y, Pb, Pr) and component(R,G,B)?

    [I previously posted this question in another thread as hadn't realised how to post new question]
    Q. What is the difference between component (Y, Pb, Pr) and component (R,G,B) ?
    I’d previously thought I was reasonably savvy on all things HD, but when I turned my thoughts to looking into getting a mac mini to run part of my home cinema I realise I have some confusions around the above.
    Here’s what I think I know:-
    The mac mini has a DVI output of the type which can output both digital and analogue, and so via physical adapters it could be used to connect to displays that take HDMI or VGA style RGB leads.
    I know on the market I can get a DVI to Component cable lead which would therefore lead me to assume it could drive my HD plasma with component input (Y,Pb,Pr), as I currently drive the HD TV via component cable with a SKY HD box (720p and 1080i), an xbox 360 (720p) and a progressive scan DVD player (480p), all through a Denon AV-amp.
    The problem is, I’ve heard somewhere that the DVI to component is R,G,B only and that it is not Y, Pb, Pr which is making me wonder it a) this will work and b) if I really understand component video afterall.
    I notice the Apple TV outputs Y,Pb,Pr but colours them red, green and blue, so am even more confused….
    Hopefully someone can help educate me on this !

    Thanks for this.
    My Plasma is a Panasonic 42" Viera March 2005 model. No HDMI, No VGA.
    It can process signals up to 720p and 1080i via the component (an interestingly it makes a huge difference over SD even though the native panel is 480..!?!)
    Am I right in thinking that the iPod component cable will also be R,G,B and therefor might be a suitable trial? Ie. if the TV accepts the input from the iPod then it should work for the mini?
    Only other thing of note is I'm doing all this via my Denon 1707 AV amp which does have the facility of upscaling, but I imagine it needs to stick to one format?
    Thanks.

  • What is the difference between APPLE TV  models 30850MD199LLA and 300024854433?

    What is the difference between APPLE TV  models 30850MD199LLA and 300024854433?

    MD199 is as shown below. The other number is not an Apple model number.
    OVERVIEW
    Introduced     March 2012 (A1427) March 2013 (A1469)
    Discontinued     --
    Model Identifier     AppleTV3,1 (A1427) or AppleTV3,2 (A1469)
    Model Number     A1427 or A1469
    EMC     2528
    Order Number     MD199LL/A

  • What is the difference  between apple care protection plan and apple care

    What is the difference between apple care protection plan and apple care +

    apple care protection plan
    That is the extended warranty (total of 3 years including the standard warranty for the first year) for any Mac computer.
    apple care +
    That is the extended warranty (total of 2 years including the standard warranty for the first year) for any iDevice (iPad, iPhone, etc).
    For either, the standard warranty is usually referred to as hardware warranty (not Applecare); see an example for the warranty for an iMac:
    http://www.apple.com/legal/warranty/products/embedded-mac-warranty-us.html
    whereas the extended Applecare is referred to as that:
    http://www.apple.com/legal/sales-support/

  • What's the difference between e.g. dialog listbox and regular listbox?

    What's the difference between e.g. dialog listbox and regular listbox?

    Dialog controls use platform specific drawing functions and cannnot be customized (change the color, etc). They often assume specific system colors.
    For example, place a dialog list box and a regular list box on your front panel. Now go to your Display control panel in windows and change the color scheme in the appearance tab. You will see that the dialog list box will change the color according to the selected scheme while the regular list box remains the same.
    Now use your labview color tool and try to change the color of each. You will be able to change the color of the regular list box, but not of the dialog list box.
    Functionally they are the same, the differences are cosmetic.
    LabVIEW Champion . Do more with less code and in less time .

  • What is the difference between "viewable/ printable payment history" and my "payments received history"? Shouldn't my "payments received" (money verizon got from me) be my "payment history"be my

    What is the difference between "viewable/ printable payment history" and my "payments received history"? Shouldn't my "payments received" (money verizon got from me) be my "payment history"?

    I have not directly myself. One of the reps put me on hold while they said they spoke to finical services. He said they would not turn off my phone while he (the rep) looked into the problem. He couldn't give me a phone # to call him back the next day and told me he would call me instead on my home land line phone #. But what I got the next day was a text message that started with" DO NOT RESPOND" to this text message and it said that I was past due on my account, and that it was due immediately. signed out again with only his first name and no phone # again. Thing is he promised he could help in my first conversation with him, where I had started with "can I speak with a supervisor as I did not want to have to repeat the whole spiel again as he was going to be my third time". He said he was authorized to take care of all & any problems and I did not need a supervisor. I took him at his word and said OK. Turns out like I said earlier…I wasted 2 hours on the phone. Can't find him as I don't know what call center and no last name. I should have gotten that up info front. Hindsight is 20/20.

  • Does anybody knows what is the difference between MacBook Pro MC723LL/A and MC723RS/A?

    Does anybody knows what is the difference between MacBook Pro MC723LL/A and MC723RS/A?

    evghenii wrote:
    Does anybody knows what is the difference between MacBook Pro MC723LL/A and MC723RS/A?
    No difference other than one is for the Russian market. Specs on both are the same, standard Apple Store issue versions.
    Of course the screen choice of anti-glare, glossy, high res or low res is not included.
    The default is likely the cheap glossy and low res.
    MC723LL/A  - 2.2Ghz MacBook Pro (15" Early 2011) $2,199
    Display 13,3'' Dual-Core i5 2.3GHz/4GB/320GB/HD Graphics/SD, Russian (MC700RS/A)
    Display 13,3'' Dual-Core i7 2.7GHz/4GB/500GB/HD Graphics/SD, Russian (MC724RS/A)
    Display 15.4" Quad-Core i7 2.0GHz/4GB/500GB/HD Graphics/Radeon HD 6490M/SD, Russian (MC721RS/A)
    Display 15.4" Quad-Core i7 2.2GHz/4GB/750GB/HD Graphics/Radeon HD 6490M/SD, Russian (MC723RS/A)
    Display 17'' Quad-Core i7 2.2GHz/4GB/750GB/HD Graphics/Radeon HD 6750M/SD, Russian (MC725RS/A)

  • What is the difference between merge down, merge visible, and flatten image?

    Hello, what is the difference between merge down, merge visible, and flatten image?

    Hi there,
      Merge Down combines the layer below the currently selected layer and the selected layer together into one singular layer. The layer name will change to the name of the layer below the selected layer. In the screenshot below, I chose to Merge Down from the layer "Circle Top". As you can see, afterward I have a new layer named "Circle Below" that has both layers combined.
      Merge Visible will merge all visible layers into one singular layer. Merge Visible will ignore any layer that has it's visibility toggled to "Off".  In the example below, I have 4 layers, with the layer "Circle Below"'s visibilty set to "Off". After I choose Merge Visible, all of the layers are combined excluding "Circle Below".
      Flatten Image will combine all of the layers into one "flattened" image or layer. You will be prompted to choose whether or not to discard hidden layers before doing so. If you choose "Ok" to discard hidden layers, Photoshop will ignore any layer with it's visibility toggled to "Off". If you choose "Cancel", Photoshop will cancel the flattening process. If you want the hidden layer included in the flattened image, you will have to toggle it's visibility to "On". The following screenshot is what a flattened image's layer pallete looks like:
      I hope this helps! If you need further clarification on this let me know! : )

  • What is the difference between hp mini 210 300sa and 3025a

    Hello,
    Could you please advise what is the difference between hp mini 210 300sa and 3025a?
    Thank you
    Regards
    Agnes

    Hi, Agnes:
    Below are links to the product specifications for these 2 notebooks:
    HP Mini 210-3000sa PC Product Specifications
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02863711&tmp_task=prodinfoCategory&cc=us&dlc=en​...=
    HP Mini 210-3025sa PC Product Specifications
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02888135&tmp_task=prodinfoCategory&cc=us&dlc=en​...=
    Doing a side by side review of the specs, the hardware and operating systems are the same, but there is a minor difference in the bundled software.
    The 3000sa has the HP Coolsense software, but does not come with Windows Live Essentials, which is included in the 3025sa (you can download that for free from MS anyway).
    The 3025sa does not come with the HP Coolsense software, but comes with Windows Live Essentials.
    Paul

  • Ipad mini-What is the difference between (ASSISTED GPS) & (ASSISTED GPS AND GLONASS)

    Ipad mini-What is the difference between (ASSISTED GPS) & (ASSISTED GPS AND GLONASS)

    Khairulnizan Kasim wrote:
    Thanks Meg St._Clair , anyway i've read some articles says, the only A-GPS device is using either mobile network or Wi-Fi for location service, so i believe if using it while flying, it couldn't detect the location, but with GLONASS, it will, because it is an alternative GPS System. I dont know, maybe im wrong.
    A-GPS is real GPS. It stands for Assiseted GPS. The iPads with cellular have a GPS. They use WiFi and cellular to assist the GPS in locking on more quickly. The GPS is assisted by the WiFi and cellular. It will work just fine while flying.
    WiFi ony iPads rely on WiFi for location services. They will not work while flying.

  • What is the difference between MOVE var1 TO var2 and var2 = var1? Help!

    Hi Experts,
        What is the difference between MOVE var1 TO var2 and var2 = var1?
    Thanks
    Gopal

    Gopal,
      pls. look into it.Good explanation on you requirement.
    To assign the value of a data object <f1> to a variable <f2>, use the following statement:
    MOVE <f1> TO <f2>.
    or the equivalent statement
    <f2> = <f1>.
    The contents of <f1> remain unchanged. <f1> does not have to be a variable - it can also be a literal, a text symbol, or a constant. You must always specify decimal points with a period (.), regardless of the user’s personal settings.
    Multiple value assignments in the form
    <f4> = <f3> = <f2> = <f1>.
    are also possible. ABAP processes them from right to left as follows:
    MOVE <f1> TO <f2>.
    MOVE <f2> TO <f3>.
    MOVE <f3> TO <f4>.
    In the MOVE statement (or when you assign one value to another with the equal sign), it is not possible to specify the field names dynamically as the contents of other fields. If you need to do this, you must use field symbols .
    There are three possible outcomes of assigning <f1> to <f2>:
    The data objects <f1> and <f2> are fully compatible, that is, their data types, field length, and number of decimal places are identical. The contents of source field <f1> are transferred byte by byte into the target field <f2> without any further manipulation. The MOVE statement is most efficient when this is the case.
    The data objects <f1> and <f2> are incompatible. This is the case, for example, if the two fields have the same type, but different lengths. The contents of the source field <f1> are converted so that they are compatible with the data type of <f2>, and are then transferred. This procedure only works if a conversion rule exists between the data types of <f1> and <f2>. Type conversions make the MOVE statement less efficient. How much less efficient depends on the individual conversion.
    The data objects <f1> and <f2> are incompatible, and no conversion is possible. The assignment is not possible. If this can be recognized statically, a syntax error occurs. If it is not recognized before the program is run, a runtime error occurs.
    The source and target fields can be of different data types. In contrast to other programming languages, where the assignment between different data types is often restricted to a small number of possible combinations, ABAP provides a wide range of automatic type conversions.
    For example, the contents of a source field with an elementary data type can be assigned to a target field with any other data type. The single exception to this rule is that it is not possible to assign values between type D fields and type T fields. ABAP even supports assignments between a structure and an elementary field, or between two structures.
    DATA: T(10) TYPE C,
          NUMBER TYPE P DECIMALS 2,
          COUNT  TYPE I.
    T = 1111.
    MOVE '5.75' TO NUMBER.
    COUNT = NUMBER.
    Following these assignments, the fields T, NUMBER, and COUNT have the values ‘1111      ’, 5.75, and 6 respectively. When you assign the number literal 1111 to T, it is converted into a character field with length 10. When you assign NUMBER to COUNT, the decimal number is rounded to an integer (as long as the program attribute Fixed pt. arithmetic has been set).
    Pls. reward if useful

  • What is the difference between "UDP Multicast open.vi " and "UDP open.vi " ?

    What is the difference between "UDP Multicast open.vi " and "UDP open.vi " ?

    Someone correct me if i am wrong, the difference is "multicast"
    -Based on my General Computer Network knowledge, multicast means sending data/packets to selected group of nodes. Which will be UDP multicast
    -UDP open.vi might be for unicast which is to one node specifically.
    -One more difference is in first one(multicast open), you have additional read,write and read write funcionality which is not available in normal UDP open.vi
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • HT4203 what is the difference between turning off "enable 3G" and "cellular data"

    what is the difference between turning off "enable 3G" and "cellular data"?

    Turning enable 3G off turns 3G network access off. This does not prevent the iPhone from internet access via your carrier's EDGE or GPRS network which is much slower.
    Turning Cellular Data off turns cellular data off completely. No internet access via your carrier's cellular network.

  • What is the difference between SAP NW PI7.1 and PI7.1 EHP1

    We have a customer using SAP PI7.1 EHP1. The application to be deployed
    isdeveloped on SAP Netweaver PI 7.1 SP06.
    We need to know if application developed and transported from PI7.1 is
    compatible with EHP1?
    Below are the Components used by the application .
    1) SSL communication using SOAP adapter
    2) Java mapping , Graphical mapping , XSLT mapping
    3) Customised EJB modules
    4) Adapter framework
    5) ALE layer for IDoc communication from ERP to PI
    6) RFC lookups to PI system and ERP system.
    Questions
    1)Will PI EHP1 be able to communicate with PI7.1 using SOAP adapter ?
    2) What is the difference between SAP NW PI7.1 and PI7.1 EHP1 ?
    Regards,
    Sneha

    Hi,
    EHP Pi7.1 new
    IPv6 Support in SAP Systems (new)
    Async/Sync and Sync/Async Bridge in the JMS Adapter (New)
    High Availability (New)   Locate the document in its SAP Library structure
    Use
    A new concept is available for setting up a high availability environment for SAP NetWeaver Process Integration (PI). To do this, you need SAP Web Dispatcher for load balancing, and you must reconfigure your HTTP, RFC, and RMI connections so that they can be used for load balancing. You must also make various configuration steps in other components of your PI environment.
    [Level 4: Document: XML to Text Conversion Module (New)] XML to Text Conversion Module (New)
    Message Packaging (New)
    Monitoring Milestones (New)   Locate the document in its SAP Library structure
    Use
    You can use the new scenario variant Monitoring Milestones of the Business Process Management scenario to define a monitoring process that can monitor events from different applications. A monitoring process can subscribe to events from SAP or non-SAP systems.
    check  given Link
    http://help.sap.com/saphelp_nwpi711/helpdata/en/61/8c3842bb58f83ae10000000a1550b0/frameset.htm
    Regards,
    Amit

Maybe you are looking for

  • Add bunch of transport requests at a time

    Hi Friends, How to add bunch of transport requests at a time to import buffer using tp tool at OS level on windows? Any help would be appreciated Thanks

  • B1DE 1.4: unknown error 2869

    I can't install B1DE 1.4, give me at the end of installation process an 'unknown error 2869'. I'm using Windows Vista, with Visual Studio VB 2005 AND Visual Studio C#, SapB1 2007. Thanks!

  • How to find URL of ITS

    Hello experts, I have to assign URL of ITS to the logical system using t-code crms_ic_cross_sys. This logical system will then be used in configuring transaction launcher to call a ABAP report program. Currently I am giving the URL as http://isvsapcr

  • Call C# method from javascript in WebView and retrieve the return value

    The issue I am facing is the following : I want to call a C# method from the javascript in my WebView and get the result of this call in my javascript. In an WPF Desktop application, it would not be an issue because a WebBrowser (the equivalent of a

  • Custom Script Code to create multi-Location files from Master File

    Hi, I currently have a custom script that loads a master file (which contains all Entities data). I would like to do the following; 1. Generate multiple files from the master files, one file per location for all locations. 2. Each location file shoul