Can anyone explain this please...

I am having a discussion with one of my freind.. and he claims..
Static methods can not be overridden but can be hidden
And then one more friend claimed...
Static methods can be over ridden by the static methods in the derived calss only
Who is right?? and WHY??
Any examples plz...

Who is right?? and WHY??
Any examples plz...What's your friends name? Is he called exam?

Similar Messages

  • Can anyone explain this to me, please. It's a static section question.

    Can anyone explain this to me, please. It's a static section question.
    I came across the following style of programming recently and I would like to know what the Static section is actually doing in the class. Thx.
    Here is the code.
    public class ClassA {
         private static Hashtable ClassAList = new Hashtable();
         private ClassB cB;
         private Vector goodLink;
         private Hashtable classCList;
         static
              ClassA cA = new ClassA();
              ClassAList.put("whatever", cA);
         public static ClassA getClassA()
              return (ClassA) ClassAList.get("whatever");

    hi,
    The static section shall be loaded before it's constructor is called. (i.e at the time of loading the class). Therefore making it available for any other objects to call.
    hope this clarifies ur question
    prasanna

  • HT3275 Please can anyone explain this to me

    Please can anyone explain this to me - thank you -
    Time Machine couldn't complete the backup to time capsule - The backup disk image “/Volumes/Data-1/Alyson’s iMac.sparsebundle” is already in use.

    The explanation is a long standing bug in Lion and Mountain Lion, but what you might really be asking is how to fix the problem.
    Pull the power cord from the back of the Time Capsule
    Wait a few minutes
    Plug the power cord back in
    If that does not fix the problem you will need to dig deeper.  See #C12 in Pondini's excellent Time Machine - Troubleshooting.
    http://pondini.org/TM/Troubleshooting.html

  • When i go to my music and play a song it sounds like my headphones are blown but when i play songs on youtube they sound fine, can anyone explain this to me? please and thank you

    when i go to my music and play a song it sounds like my headphones are blown but when i play songs on youtube they sound fine, can anyone explain this to me? please and thank you

    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 all music and resync
    - 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: How to back up                                                                
    - Restore to factory settings/new iOS device.      

  • HT1430 I downloaded the lateest update and I can't turn off my apps like I did on 6os. The 7os is different and I can't seem to find out if apps turn off now by just closing them. Can anyone explain this to me? Please

    I downloaded the lateest update and I can't turn off my apps like I did on 6os. The 7os is different and I can't seem to find out if apps turn off now by just closing them. Can anyone explain this to me? Please

    Double tap the Home button and swipe the app preview page up
    iOS 7  also allows apps to run while they aren't open.
    You can manage these here:
    Settings > General > Background App Refresh

  • Post Moved Can anyone explain this baffling puzz...

    Post moved to Other BB Queries http://community.bt.com/t5/Other-BB-Queries/Can-anyone-explain-this-baffling-puzzle-with-BT-Total-BB...
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    I tend to think that the comments about MAC address filtering and wireless security are a bit misleading - if these things were the problem then it would not work at all as opposed to working sporadically.
    I must admit, reading your post I had exactly the same problem moving into a new house last year, my desktop PC in my room would get terrible wireless reception with constant erroring and was practically unusable whilst a laptop sat next to it was just fine. I tried a million different things and eventually bought an external wireless antenna like the one here:
    Edimax EA-IO7D 7dBi Indoor Omni-Directional High Gain Antenna with Desktop Stand - 1m Cable
    It solved the problem for me though I am still mystified as to what the problem is - I suspect that there is something in the environment causing interference though I don't know what. My house is of average size and fairly modern with thin walls so I would not anticipate any problems.
    Some things to try are to move the PC right next to the hub (or vice versa, whichever is easier) and see if this improves things or borrow a wireless router from a friend, turn off all encryption and see what signal strength you get there.

  • Can anyone explain this: Numeric or Value Error Line 1

    I have a stored procedure that starts out like so:
    PROCEDURE test_proc(param1 IN VARCHAR2, param2 IN VARCHAR2, param3 OUT
    SYS_REFCURSOR) IS
    v_var varchar2(5);
    BEGIN
    SELECT * FROM. . .
    The procedure tested fine in PL/SQL Developer. When calling from
    ODP.NET like so. . .
    OracleCommand cmd = new OracleCommand("test_proc", <connection>);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.Add("param1", "somevalue");
    cmd.Parameters.Add("param2", "XX");
    cmd.Parameters.Add("param3", OracleDbType.RefCursor,
    ParameterDirection.Output);
    DataSet ds = new DataSet();
    OracleDataAdapter da = new OracleDataAdapter(cmd);
    con.Open();
    da.fill(ds);
    con.Close();
    . . .the procedure executed as expected. If I changed the value of
    param2 to "XXX" or any value three chars long I got the "ORA-06502:
    Numeric or Value Error at Line 1" error.
    After beating my head against the wall for hours, I tried changing the
    size of v_var to 50, and the error disappeared. Mind you, the error
    was being thrown long before v_var was being set further down in the
    proc. Even more interesting is that the possible values of v_var were
    all less than 5 chars wide. Most interesting: the value of p_param2 had nothing whatever to do with v_var.
    Can anyone explain this?

    Hi,
    Is your database 9206 by chance? Re: Error ORA-06502 PL/SQL
    Cheers,
    Greg

  • Can anyone explain this query.?

    Can anyone explain this query.?
    select nvl(s.p_id,q.p_id),nvl(s.p_type,q.p_type),nvl(s.p_line,q.p_line),
    nvl(s.sales2004,0),nvl(s.sales2005,0),nvl(q.quota2004,0),nvl(q.quota2005,0)
    from sales s
    full outer join quota q on(s.p_id = q.p_id and s.p_type=q.p_type and s.p_line=q.p_line)

    from sales s full outer join quota qTable quota is outer joined to table sales , if there are no matching records in table quota then also the query retuns the sales record with null values for the corresponding quota record columns
    NVL() has been used to handle such cases

  • TS3988 I have an icloud account and I view my mail with Mail V5.2. I recieve my email but the senders get messages saying the delivery failed. Can anyone explain this or help me.

    I have an icloud account and I view my mail with Mail V5.2. I recieve my email but the senders get messages saying the delivery failed. Can anyone explain this or help me.

    Thank you for replying.    Yes I deleted the old email address..   

  • I went to silence my iPhone 5s and had a box pop up--looked like one of those boxes telling me turning on Location Services would help--telling me I needed to change my password within 60 minutes.....I turned the phone off.  Can anyone explain this to me?

    I went to silence my iPhone 5s and had a box pop up--looked like one of those boxes telling me turning on Location Services would help--telling me I needed to change my password within 60 minutes.....I turned the phone off.  Can anyone explain this to me?

    I went to silence my iPhone 5s and had a box pop up--looked like one of those boxes telling me turning on Location Services would help--telling me I needed to change my password within 60 minutes.....I turned the phone off.  Can anyone explain this to me?

  • The home button has stopped working on my iphone 5c. Did the same a few months ago and recovered 24hrs later. Can anyone explain this problem. Phone still in warranty. Had steam issue recently but this was after last home button episode.

    Have an iphone 5c 8g. The home button has stopped working. Did the same a few months ago and recovered 24hrs later. Can anyone explain this problem. Phone still in warranty. Had steam issue recently but this was after last home button episode and no evidence of damage.

    If you are playing in hockey arenas a lot or if you are bringing it into bathroom same time as shower it may not seem like much but overtime the steam can acquire and build up in the phones usb dock flex cable swell as the home button flex cable. Bring again into apple store and should be covered under warranty again. could also be a delay in a 8gb 5c software may just be very lag.

  • Can ANYONE explain this IDIOCY?

    If I have an IFieldObject or ITextObject with the default height of 221 twips for an Arial 8.25pt or Tahoma Bold 8.25 font.
    Why is that a IBoxObject where I set the Top the same as my IField or ITextObject and set the bottom to the Top + 221 twips, the bottoms DON'T LINE UP. Aren't they all 221 twips in height, right?
    Same goes with the width...It befuddles me to work in this designer and not have things equal. Also, why in the world would they not give the IBoxObject a HEIGTH property?
    How wide is the crSingleLine? 20 twips? I understand that when you set the border the actual height/width grows but the values don't reflect it, is that true?
    Can anyone explain the idocy of the measurements and drawing elements in this, used to be good but now is a piece of crap, product? Is there any documentation on this "feature" anywhere? I can't find anything about this in the user guides or help. I'm using 10.2.3600 (sp1) in VS.Net2005 (w/VB.net)

    I have deleted the last reply because of the language used in it. I am also locking this thread so no more replies can be added to it.
    If you want to get replies to your postings please follow the rules of engagement: https://wiki.sdn.sap.com/wiki/x/FgQ
    Be professional, polite, and give us information we need to help you. Remember "us" is not just SAP but all of us in the forum community. Someone other then an SAP engineer may help you, just like you may one time elect help another community member's posting.
    Please feel free to repost your questions in this forum following the "Rules of Engagement". Not following these rules will get postings deleted or ignored.
    Kind Regards,
    Trevor Dubinsky
    Senior Engineer,
    SAP, Business Objects.

  • HDV & FCP - Can anyone explain this in layman's terms??

    Okay, I have a broad but limited understanding of all these technical terms for HDV and FCP and I am still banging my head against the wall in frustration!!
    I make videos underwater for divers and the company I work for. I have just moved into the world of HDV and am using the Sony FX1 and FCP Studio.
    I have many areas I am looking for help in:
    1. After I have captured my footage to FCP and I pull clips from logged footage, ever clip that goes into the timeline needs rendering - 8 sec of footage takes 5-10min to render, this is before any effects!!! Does anyone know what could be the cause of this? I have checked and re-checked all my A/V settings, capture settings, etc. but still cannot figure out why every clip I drag to the timeline requires rendering.
    2. Footage I capture looks great as it's capturing but when I play it back in the viewer or Canvas it looks as though I've shot it during a heatwave - it sort of goes fuzzy then clear, fuzzy then clear - not terribly so, but enough to make me scream with frustration at the "not-so-nice" video
    3. Can anyone explain in simple terms how I downconvert a sequence before exporting for use in DVDSP 4? I am a little unfamiliar with Compressor and besides Compressor takes 8 hours to compress a simple 6min video!!!
    Has anyone else encountered these problems? Does anyone have any answers before I end up a drivelling wreck??

    I am at my wit's end trying to work out where I am going wrong. I have set FCP (5.0.2) to "Easy Setup" for my Sony FX1. The camera is set up as follows:
    IN/OUT REC
    VCR HDV/DV - HDV
    COMPONENT - 1080i/480i
    i.LINK CONV - OFF
    TV TYPE - 16:9
    A/V-DV OUT - OFF
    I have tried to log and capture footage three times now and every time I have to render simple clips taken from the Viewer into the Timeline. I haven't done any special effects, they are just plain old clips. Rendering a 7 second clip takes approx. 8min!! I can't move forward with my editing having to render every single clip I drag to the timeline.
    I have searched high and low for an answer to this problem but no one else seems to have this problem or has yet to come up with a solution! Can anyone please help me? This is driving me crazy!?

  • Can anyone explain this behavior and tell me how to fix it?

    Using NetBeans 6.5 on Windows, Glassfish v2.1
    I have a JSF application with a page that has a tab set.
    On one of the tabs I have a panel with company information.
    One of the components on the page is an InputText field with the value bound to a session bean variable.
    The tab also has an Add button.
    Here is what the JSP looks like for the input text and button components
       <h:inputText binding="#{MainPage.companyNameTF}" id="companyNameTF" readonly="#{SessionBean1.readOnlyFlag}"
       <h:commandButton action="#{MainPage.mainAddBtn_action}" disabled="#{SessionBean1.disableEdit}" id="mainAddBtn"
            style="font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; left: 425px; top: 380px; position: absolute; width: 75px" value="Add"/>
         This is all plain vanilla stuff and I would expect that when the Add button is pushed, the session bean property would be filled with
    the value entered in the input text field.
    In the java code for the page, I have a method to process the Add button push.
    Originally, it just called a method in the session bean to check that a value was entered in the input text field by checking the bound
    session bean property.
    For some reason, that was not getting filled and I was getting either a null or empty string rather than the value in the text field.
    I added some checking in the method that processes the Add button push so I could check the values in the debugger.
    Here is a sample of that code:
        public String mainAddBtn_action() {
            String s = sb1.getCompanyName();
            s = (String)this.companyNameTF.getValue();
            s = (String)this.companyNameTF.getSubmittedValue();I check this in the debugger and NONE of the variants that I have listed have the value that was entered into the text field.
    The submittedValue is null and the others are empty strings (that is what they were initalized to).
    This is all pertty straight forward stuff and I am at a loss to explain what is happening.
    Can anyone expain this behavior, and, most important, how can I force the values to be present when the Add button is pushed.
    I have never experienced this problem before, and have no clue what is causing it.
    Thanks.

    Basically, the component bindings are just being used in plain vanilla get/set modes.
    I set them to "" when I do a clear for the fields and they are set to a value via the text field.
    No other action other than to read the values via get to insert them into the database.
    And, I always use the get/set methods rather than just setting the value directly.
    This is what is so strange about this behavior - I have created dozens of database add/update/delete pages using this same model and have not had a problem with them - even in a tab context.
    Not a clue why this one is different.
    I did notice that I had an error on the page (in IE7, you get a small triangle warning sign when something is not right).
    I figured that might be the problem - maybe buggering up the rendering process.
    I tracked that down and do not get that anymore (it had to do with the PDF display I was trying to get working a while back), but that did not resolve the problem.
    I don't think there are any tab conflicts - none of the components are shared between tabs, but I will see what happens when I move a couple of the components out of the tab context.
    I noticed that it seems to skip a cycle. Here is what I can do.
    1) Fill in text fields and add a record - works fine the first time.
    2) Clear the text fields
    3) Enter new data in the text fields and push Add
    4) I get an error saying fields are blank from my data check process.
    5) Enter new data and push Add - the record is added with the new data.
    My work around is to not enter data in step 3 and just accept the error message in step 4, then go ahead and enter the real data in step 5.
    Very ugly, but it works every time.

  • Can anyone explain this? ORA-01722

    Hi all,
    Can anyone understand this?
    I have 3 database servers both running on windows 2000 advanced server, they're used by the development team. Also we have our production database.
    The 3 databases are cloned from the production, so database configuration parameters are all equal. Today I've received a query from the development team to run on the production, the query is just simple like this:
    SELECT *
    FROM x
    WHERE x.field_v = 177762522
    I get this error
    ORA-01722: invalid number
    this is a hudge table, and the fiedl_v is a varchar2(9) type.
    The worst thing is that on the others 3 databases this query returns results, except on the production.
    So, can anyone explain me why does the implicit (char to number) conversion occours on the development databases , and fails on the production? What are the main reasons that can influence datatype conversion like this one?
    Both databases have the 9.0.6 patch.
    The 3 development BD's are totally cloned from the production.
    Thanks.

    William:
    There is no guarantee on the order of evaluation of the predicates. Even with your isnum function, the invalid number could arise. The only safe way is to compare strings to strings as in your first example.
    To make the isnum "safe", you would need something more like:
    SELECT *
    FROM (SELECT *
          FROM x
          WHERE isnum(x.field_v) = 'Y' and
                ROWNUM > 0)
    WHERE x.field_v = 177762522;The ROWNUM > 0 predicate in the in-line view will prevent predicate pushing and guarantee that the isnum condition is evaluated first.
    John

Maybe you are looking for

  • Game center will not load. It churns forever with no loading.

    I am running iOS 4.1.2, newest for my ipod, a 8 GB 2nd gen. Is there any way to get game center to load and let me in? I don't have unlimited time and it would be nice to load withing a few minutes, instead of more than 10. I have given it about 10 m

  • IWeb quits 'unexpectedly'...how do I get it to work/

    I have a website on iWeb, and I have all of a sudden had a problem opening it. I click on the icon on my dock, and it starts to bounce, but after 15-20 seconds it gives me a message saying 'the application iWeb quit unexpectedly'. I have tried relaun

  • How can you use Win 7 upgrade disk if Boot Camp 4 doesn't support XP or Vista?

    I've just purchased a Windows 7 Ultimate upgrade disk to upgrade my Win XP Pro. I haven't installed Lion or Boot Camp 4 yet but am concerned that if I need to reinstall Win 7 in the future the upgrade disk will require that Win XP Pro be installed fi

  • How to add a field in FV60 transaction ALV

    Hi, I want to add a new field in FV60 transaction, I know that it can be done adding a new screen variant is this right? and how do i do this? What I exactly want is to add a field in the Table Control Named "Distance" and it should be type character

  • How can we display below mention control in the selection screen

    I want to display a container in the selection screen. (the container which we can use/get in the alv out put when we select a ascending/decending sort buttons for filtering of sort order). thanks in advance. sree