I am confused by the Overriding

I made a class Point which extends the Object class, then I add a method to this class:
private int clone()
As I think, this clone method is not overriding the clone method in the Object class, because they have different return type. But the compiler tell following error:
Test.java:30: clone() in Point cannot override clone() in java.lang.Object;
attempting to assign weaker access privileges; was protected
So I am confused, why the compiler thinks I am overriding that clone method?
Can anybody give me some explaination?
Thanks
Michael

Hmmm... I think you are right, and I made a misunderstanding about the following statement in Java Tutorial.
"The return type, method name, and number and type of the parameters for the overriding method must match those in the overridden method."
I have thought that the compiler considers overriding only when all of the return type, method name, and number and type of parameters are identical. I was wrong. Actually, the identical return type is not a condition to make decision, but a necessity after the condition has been made.
Thanks.

Similar Messages

  • I have purchased a new iPad and given my old one to my husband.  How do I change the Apple ID over to him.  We are having continuous confusion between the two iPads

    I have purchased a new iPad and given my old one to my husband.  How do I change the Apple ID over to him.  We are having continuous confusion between the two iPads

    Hi Marg42,
    Thanks for visiting Apple Support Communities.
    First, your husband can create his own Apple ID via the web, computer, or iPad, if he hasn't already:
    My Apple ID
    https://appleid.apple.com
    iTunes: How to set up an Apple ID within iTunes
    http://support.apple.com/kb/ht2731
    Next, he can sign out of the Apple services that are currently using your Apple ID on your old iPad, and sign in with his own.
    This article has instructions for doing so for specific Apple services:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Alternately, he can erase the device and set it up as new using the steps in this article:
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/ht4137
    Best Regards,
    Jeremy

  • I'm confused about the apple ID transition from my aol screen name. Does it continue to use my aol email as my apple ID, converting it somehow or do I need to provide a new email address or just create a new username for the apple ID?

    I'm confused about the transition to an apple ID that doesn't use my aol email to sign in. The instructions are vague and ambiguous. Any help would be appreciated.

    OK, so if your current Apple ID using your AOL Username (like johndoe), then you need to log onto Manage your Apple ID and EDIT that AOL Username to a valid email address: Apple - My Apple ID
    If you have an AOL email address (like [email protected]), and you are not using that as another Apple ID, you can change the AOL Username Apple ID to that. Otherwise, you can change it to any valid email address (which you will have to verify when you change to it).
    Hope that clears it up. Post back if it doesn't!
    Cheers,
    GB

  • Changing the override file via command line arguments

    Is there a way to change name of the file Coherence uses to override coherence-config.xml via a command line argument? I'd like to specify different override filenames in different environments.

    I get the message that:
    2006-02-13 16:53:27.699 Tangosol Coherence 3.0.1/317 <D5> (thread=main, member=n/a): Optional configuration file "/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml" is not specified
    I specified the following as the startup:
    java -Dtangosol.coherence.override=/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml -Dtangosol.coherence.log.level=5 -classpath /home/ncohen/tools/tangosol-config:/home/noah/tools/tangosol/lib/coherence.jar com.tangosol.net.CacheFactory
    Where the tangosol-config directory contains my override file tangosol-coherence-override-dev.xml
    If I change the name of the override file solely in the cmd prompt, it doesn't find any of them. It just gives me the optional configuration file ..... is not specified. How does one go about fixing this? Thx.
    Message was edited by:
    noah

  • Confuse about the document

    Hi,all . From the document ,i had confused about the following .
    Automatic Undo Management in Oracle RAC
    url >> http://docs.oracle.com/cd/B19306_01/rac.102/b28759/adminrac.htm#CHDGAIFJ
    Oracle automatically manages undo segments within a specific undo tablespace that is assigned to an instance. Only the instance assigned to the undo tablespace can modify the contents of that tablespace. However, each instance can read the undo data blocks created by any instance. Also, when performing transaction recovery, any instance can update any undo tablespace, as long as that undo tablespace is not currently being used by another instance for undo generation or transaction recovery
    what's the meaning of above that is bold ?

    Say you're running a 2-node RAC and node 2 dies. The services which were running on node 2 now get re-located to node 1. It is then possible that node 1 will perform transaction rollback/recovery and, when it does so, it will need to be able to read from node 2's undo tablespace (and maybe update the undo segment headers in node 2's undo tablespace, too).

  • BO 4.0 LCM - Using the Override Settings Option

    I am reading the LCM user manual and I am wondering:
    What is meaning of Using the Override Settings Option?
    I need to use LCM to move WebI reports and Universes from one environment to another
    and from one environment to a LCMBIAR file.

    I did everything as advised to apply an override for the universe connection object, even though there is no change in the connection settings from QA to PROD, I still get this during Test Promote:
    Resolution Status=Copied, Dependency Status=All the required dependencies are included., Commit Status=Commit is successful., Promotion Status=Warning : Can't apply override; Override information is Not Available
    When I do the actual promotion, the job fails for the connection object citing override issues. I don't know what's going on with LCM but is there any way to no be forced to use the override feature?
    Thanks!

  • I cannot upload my iMovie video to Facebook, etc. I cannot even attach it to an email, an 'error' message comes up when almost complete. It plays fine in imovies, VLC, mplayerx. Confused, is the file damaged somehow?

    I cannot upload my iMovie video to Facebook, etc. I cannot even attach it to an email, an 'error' message comes up when almost complete. It plays fine in imovies, VLC, mplayerx. Confused, is the file damaged somehow?

    The Deskjet series printers connect to wireless networks with what is called USB to Wireless.
    You will need a supported operating system to connect a Deskjet to a wireless network.  Supported operating systems to connect the printer to a wireless network are Windows 7 (32bit and 64bit), Windows Vista (32bit and 64bit), and Mac OS X (10.5, 10.6, and 10.7).  
    While there is a software download option for Linux distributions, this is not the full featured software that is capable of adding the printer to a wireless network.  Most printers have a wireless setup wizard to accomplish this task, but the Deskjet series printers connect in a different way.
    Once the printer is connected to a wireless network,  HPLIP 3.12.4 drivers should be able to locate the printer.
    Click on Installing the Product Software for a Wireless Network Connection to receive instructions to connect to a wireless network using Windows and Mac operating systems.
    Click on Software & Driver Downloads - HP Deskjet 3070A e-All-in-One Printer - B611a to download the appropriate software for a supported operating system to connect to a wireless network.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    There is no way for the keyboard itself to display only lower case letters. It doesn't display lower case letters at all for that matter.
    When you are using the keyboard - The other issue that you will have is with the shift key. Even with auto caps turned off you can still type capital letters if you tap the shift key and if you double tap it by mistake - it will turn into all capital letters so also turn off Caps Lock in the keyboard settings.
    Other than that, there is no way to ensure that you can type in lower case.
    Maybe an external bluetooth keyboard would be a better solution but I don't use one, and I have never even seen one in person so someone else will have to verify that for you.

  • Digital Publishing Suite: many are confused by the term

    Call me pedantic but I know that many people are confused by the term Digital Publishing Suite. This name describes an extension to InDesign CS5.5/CS5 that provides a set of authoring tools but it also identifies a completely separate subscription service that Adobe runs to hosts Apps. A distinction should be made between these two.
    Also in this forum it would be useful to flag items that only pertain to subscribers. Bob’s announcement today that Viewer Builder 1.5 is available stated For DPS Subscribers Only which is useful, but often in threads it is not clear whether comments refer to those with a subscription or those without.
    Also I urge Adobe to include a Feature Requests section on this Forum (like the prerelease) in order for Adobe to keep in touch with the needs of “real” users.

    Hi Graham,
    The DPS name covers the full range of applications and services as they are all intrinsically linked. The InDesign Folio Builder and overlay creator tools, are used to produce folios to be uploaded to Acrobat.com. The Folio Editor tools available through digitalpublishing.acrobat.com allow the user to reorganise these same folios, add and edit the metadata and, if they are a subscriber, publish these folios to the fulfillment server so that they can be download to the iPad/Android tablet/Playbook. The viewer builder exists for subscribers to create the iOS or Android apps their customers will use to download the folios from the fulfillment server.
    I agree with you and Bob on the other points however, there does seem to be a lot of confusion about which elements are available with a standard Adobe ID and which require a subscription.
    While we don't have a requests forum, we do have the [email protected] alias, which users can email to make us aware of issues, requests and obviously feedback.
    Regards,
    Alex

  • The @Override annotation behaviour

    Hello!
    Why does the @Override annotation work with abstract methods and doesn's work with interface methods?
    For example:
    public abstract class Base {
      abstract public void foo();
    public class Child extends Base {
      @Override public void foo() { } // OK
    public interface Interface {
      void foo();
    public class Implementation implements Interface {
      @Override public void foo() { } // ERROR: method does not override a method from its superclass
    }Thanks you!

    I am not sure what you mean by doesn't work, but ...
    In the J2SE 1.5.0 documentation
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Override.html
    Indicates that a method declaration is intended to override a method declaration in a
    superclass. If a method is annotated with this annotation type but does not override a
    superclass method, compilers are required to generate an error message.This specifically states that this is used to require the compiler to generate an error message when the annotated method does not override a superclass method.
    Interfaces are not superclasses. In your example, the superclass of class Implementation is Object, not Interface.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Confused about the date/time processing logic

    Hi Experts,
    i've sent this issue to OSS but they replied this is not a bug and not giving me any info, so I'm here ask for help:
    (i've got 2 screenshots but it seems there's no upload in the sdn forum?)
    we have the equipment warranty master data (check 1.jpg, the Warranties
    assignment block)
    and there're "Warranty Start" and "Warranty End" dates
    we are confused how the data is saved and loaded with the timezones:
    (how are the User Timezone & Server Timezone, or any other value related
    in the following problems)
    1, there're two pairs of columns, the 1st pair only shows date, the 2nd
    pair shows the time also. --What's the diffenence?
    2, when creating a new warranty master data, the 2nd pair shows the
    hour/min/sec(in 1.jpg, "17:00:00"), by what logic, does the hour/min/sec
    value come?
    (in the 2.jpg, we can see different data with different hour stamps,
    how is the value determined?)
    3, how about if we use program to write the data, if we put timestamp
    20120228000000 in the database, what does that mean to the system(which
    timezone means to the system)?
    4, when showing the start/end date data, by what logic (using which
    timezone value) does the system calculated and then bring to the webUI ? (e.g. at Account Identification, after entered Serial Number in Objects, there're Warranty Start/End date, how's the value calculated?)
    Thanks
    Kane Xu

    Hi All,
    Thanks for your deatiled reply, I think the logic is somehow clear for me,
    but now I'm facing a strange problem:
    as the screenshot shows, the 2nd pair of time(with hour/min/sec) is the UTC time
    I found that is stored in table COMM_IL_IOBWTY, the value is exactly the same on UI
    we have a program and a FM, both using "  CALL FUNCTION 'CRM_IBCWTY_IL_API_CREATE' " staement to write this value.
    the program is set as a background job, but for now, at testing period, we run it manually in se38 each time we need
    the FM is called from EN_ONSAVE of an OVView page of webUI
    in the code, both in the program and in the FM, we put 000000 for hr/min/sec,
    they works fine in our dev system, but in qas system,
    the FM works fine, and after running the program, the hour value in table(and in webUI) is not zero,it seems changing by user timezone settings.
    I'm so confused and tried to debug into the 'CRM_IBCWTY_IL_API_CREATE' and not found any code might be related to timezone.
    Do you have any idea why this happens? Thank you!
    Kane

  • Confused about the battery...

    Hello everyone,
    I'm from Pakistan and I just switched to Mac almost 2-3 weeks ago. Since, they have proper apple authorized dealers here so I finally decided to get one for myself. I had some confusion about the battery and my system and now I'm getting very much concerned and worried as a matter of fact.
    I installed coconut battery (as few people suggested me) to check my battery status. First of all, it shows the age of my Mac as 5 months, which is pretty surprising since I got a brand new one and even the condition is of a brand new one so I have no clue why did it say that.
    Secondly, I would like to tell the condition of my battery:
    Current Battery Charge: 3591 mAh (I'm using on battery power right now)
    Maximum Battery charge: 4068 mAh
    88%
    Current Battery Capacity: 4068 mAh
    Original Battery Capacity: 4100 mAh
    99%
    Additional info:
    Battery-Loadcycles : 12
    Age of your Mac: 5 months
    Charger connected: No
    Battery is charging: No
    I am just concerned that my battery current capacity decreased to 99% after just 12 load cycles. Why is that? Some people tell that they have a 100% even after using it for a long time and other than that does anyone have any idea why is the age being shown as 5 months when I have only used it for 2 weeks.
    I'm really confused.
    Another suggestion that I want is that in Pakistan, we are having major electricity load shedding so I can't keep it on AC power most of the time so if my computer is shut-down and being charged. If the electricity goes and when it comes back and it starts charging to the point from where it left, will that waste the load-cycle or will it continue to charge it from there without wasting cycle? Does that affect the battery life? (Assuming that the computer is shut-down while being charged)
    Last thing, should I use it mostly on AC power or is it better to charge it and then drain the battery and then charge it and then use. Till how much percent should I keep using on the battery power and then connect the Magsafe connector?
    Please help people
    I'd highly appreciate if you could answer my questions.
    Thank you.

    I was told that it is best to keep it plugged in and connected to the charger when you can, but if you are not able to do that then just use battery power. I just know you don't want too many cycles, which means you don't want to drain the battery completely then fully recharge it. You should calibrate the battery, which is pretty much just draining battery then recharging it, every couple of months if you keep it plugged into the charger and don't use just the battery often.

  • Confused about the meaning of  Time Quota Types

    I am learning SAP-HCM on IDES 6.0. I am confused about the meaning of Time Quota Type. I have gone thru the SAP documentation, but still not clear about it. Please help me with a few examples. How is it different from Absence Type?

    Hi Gopal ,
    Absences are very generic ones that we create which needs to be reflected in IT2001 and dedcution can happen.
    Absence Quotas are the limited entitlement that is fixed say ur eligible for 10 days sick leave so here this is a Quota for each year  and so becomes a Quota say Sick leave Quota =10 and will be seen in IT2006.
    Now an absence needs to be linked to this Quota for dedcution.
    An absence can be or may not be linked to a Quota.This depends on business Requirement.
    Let me know if u have further Questions.
    Thanks
    Swati

  • Confused about the 'cpu fsb clock frequency' setting, etc., in cell in bios

    just got a new k8n neo2-f nforce3 board with an a64 3500+ venice chip.  It is properly recognized in the bios and windows as an a64 3500+ at 2.2ghz, but I'm confused about the cell menu settings in the bios. I see a 'cpu fsb clock frequency' which was automatically set at 200mhz, but the fsb runs at 1Ghz (1000mhz), so what is the 'fsb clock frequency' if not equal to the cpu fsb?  Is 200 the correct setting for that?  Should I need to change any of the other settings in here?  I wonder, because my 3dmark03 score only went up 200 points from the same system with a AthlonXP 2500+ chip and kt4avl mobo, which seems like a low increase to me.....

    I would set that to Manual in BIOS, so that you can incremently increase the CPU speed without causing a sudden crash. Each system is different and operates within the specs of not only the CPU, but system memory and PCI-E add-ins as well. Your video card is the primary driver behgind your 3DMark scores...but you haven't listed that?!

  • Confused about the default schema

    Hi,
    I am a little bit confused about the schema concept.
    I want to create a new schema called APP and then create several users and roles based on the schema APP. The default schema for the users should be APP achema.
    How can I make the schema APP the default schema for the new users that I am creating?
    I feel that there are some schema design concepts that I have to learn. Is there any resource on the internet that I can read and learn more about oracle schema design best practices?
    Any help would be appreciated,
    Ali

    A schema holds object definitions, and in the case of table & index objects the schema also holds the data.
    A user owns the schema.
    Therefore the user 'owns the definitions (including any functions, procedures, sequences, tabels, etc.)
    Other users may be granted access to some, or all, of the objects in a schema. This is done through the 'GRANT ...' command. For example, consider the following steps:
    1) create user app_owner
    2) create table object test owned by the app_owwner
    3) create user app_user
    4) grant select, update, insert and delete on app_owner's test table to app_user
    5) add synonyms to avoid needing to qualify the table's schema name.
    done as follows:
    oracle@fuzzy:~> sqlplus system
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 3 20:07:32 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Create the app owner userid. Note there is no need to ever log in to that user, even to create tables.
    SQL> create user app_owner
      2  identified by xyz
      3  account lock
      4  quota unlimited on users
      5  default tablespace users
      6  temporary tablespace temp;
    User created.
    Creating objects in a schema can be done by providing the schema name, or by switching schema in newer versions of Oracle
    SQL> create table app_owner.test ( t number );
    Table created.
    Create a userid that will access the table. Set that userid up to access the database and (for future) give it the capability to create it's own synonyms
    SQL> create user app_user
      2  identified by xyz
      3  temporary tablespace temp;
    User created.
    SQL> grant create session to app_user;
    Grant succeeded.
    SQL> grant create synonym to app_user;
    Grant succeeded.
    Now give the user access to the objects
    SQL> grant select, update, insert, delete on app_owner.test to app_user;
    Grant succeeded.
    Let's test it out. Insert by qualifying the schema name on the object, then create a synonym to avoid using schema, and try it all using the synonym
    SQL> connect app_user/xyz
    Connected.
    SQL> insert into app_owner.test values (4);
    1 row created.
    SQL> create synonym test for app_owner.test;
    Synonym created.
    SQL> insert into test values (3);
    1 row created.
    SQL> select * from test;
             T
             4
             3
    SQL>  Note that some people want to use PUBLIC grants and PUBLIC synonyms. This is a real bad idea if you want to ensure long term security of the data and want to host several different applications in the same Oracle instance.
    This, and a whole lot more, is in the 'Concepts' manual for your version of the database at http://docs.oracle.com

Maybe you are looking for