What is the reason  of using ? extends anyobject in case of Interface.

My Question is this, why we use "extends" instead of "implements"

If you have a look at a programming manual for C#, you'll see that the "extends" relationship, that in java would be written "class Child extends Parent", is written as "class Child : Parent".
If you look farther, you'll see that the "implements" relationship, that in java would be "class Child implements IChild", is written as "class Child : IChild".
It turns out that putting the keyword "interface" or "class" on the parent entity is enough for the compiler to figure it out. (Duh!) It also turns out that all those people who have been droning on and on about "Don't name your interfaces with a leading I, because if you change them to abstract base classes you'll have to edit the code to fix it" had apparently forgotten that if you change "implements" to "extends" you've already edited the code.
So I don't actually know why, but I'd guess that someone in Java-land had a sudden flow of oxygenated blood to the brain, and realized that having two keywords would require them to implement a lot of tracking and parsing and whatnot for essentially zero return.
Sure, it's inconsistent with the rest of the language. But it leaves hope that Java 7 or 8 will make the "implements" and "extends" keywords interchangeable, at least in one direction.
=Austin

Similar Messages

  • What are the reasons for using absolute paths to embedded objects in word?

    Hello,
    hopefully someone can answer me the question why word always stores the absolute paths to linked objects? We use Word for documentation and these documents are stored in a version control system and sometimes several persons are working on a document. Because
    of the absolute paths stored in the document all users would need to have the same directory structure so that the links would work for every person.
    For linked objects it's not even possible to change the absolute paths to relative paths.
    Additionally I would like to know what the difference between a "Graphic" and "Picture" object is. A graphic can be inserted by selecting "INSERT" -> "Pictures" and a "Graphic" doesn't seem to have a field
    function and always uses absolute paths. "Graphics" can be inserted by selecting "INSERT" -> "Quick Parts" -> "Field..." -> "IncludePicture" and it's possible to use relative paths for "IncludePicture"
    objects and it's possible to show the field function of a "Picture" object.
    Regards
    Martin

    This seems to be by design, not too much information about this. The thread below should be helpful for you to understand it:
    https://social.technet.microsoft.com/Forums/office/en-US/6d4445e1-cdc5-4b3b-9355-9081c963fdd9/unable-to-use-relative-object-links-in-word-office-2010-sp1
    Also, from the thread below, you will find some workarounds for this issue:
    http://windowssecrets.com/forums/showthread.php/102080-Relative-Paths-in-Word-Fields-(All)?p=584769&viewfull=1#post584769
    Aravindhan Battepati

  • Illustrator keeps quitting-notice others have had similar issues, not resolved-so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help-come on-someon

    Illustrator keeps quitting…notice others have had similar issues…so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help…come on…someone has to have an answer…HELP Pleeeeease

    <moved from Adobe Creative Cloud to Illustrator>
    reset your preferences -
    acrobat:  http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
    adobe media encoder: https://forums.adobe.com/thread/1713540
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html,  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
    if that fails, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall

  • I'm using i phone 5, the battery drops suddenly from 20% to 5% what is the reason ? and what is the solution?

    i'm using i phone 5, the battery drops suddenly from 20% to 5% what is the reason ? and what is the solution?

    There could be many causes and many solutions.  All of them start with creating a backup using iCloud or iTunes on your computer.  After that, try some of the steps written about in this blog;
    http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain
    If none of that helps, you may consider putting the iPhone into DFU mode (Google it) which will reset the firmware that monitors the battery.

  • What is the reason a contract phone cannot be used on a prepaid plan?

    >> Duplicate post removed to comply with Verizon Wireless Terms of Service.  See What is the reason contract phones cannot be used on a prepaid plan?<<
    Message was edited by: Verizon Moderator

    JamesW2010 wrote:
    I use pics that i take within World of Warcraft, so i generally just take my own, i dont use the bad stuff
    Well those screen shots are never going to look very good on a T-shirt print. You could upsize them in Photoshop but they will look rubbish.
    Maybe you could get something better here:  http://www.worldofwarcraft.com/downloads/wallpapers.html

  • How can I fix my mac mini g4 1.5ghz which gets the must reboot message?  what is the reason?

    How can I fix my mac mini g4 1.5ghz with 2gig ram which gets the must reboot message randomlly?  what is the reason?  Hard disk has no errors.

    Based on your description, you are having a kernel panic.
    Can you post some of your crash logs? Might be a clue. See Mac OS X: How to log a kernel panic http://support.apple.com/kb/HT2546
    Understanding crash logs isn’t easy and it’s hard (sometimes impossible) to decipher the cause of the problem. Take a look at Apple’s Crash Reporter document at http://developer.apple.com/technotes/tn2004/tn2123.html Also look at Tutorial: An introduction to reading Mac OS X crash reports
    http://www.macfixit.com/article.php?story=20060309075929717
    Kernel panics are usually caused by a hardware problem – frequently RAM, a USB device or a Firewire device. What external devices do you have connected? When trying to troubleshoot problems, disconnect all external devices except your monitor, keyboard and mouse. Do you experience the same problems?
    To eliminate RAM being the problem, Look at this link: Testing RAM @ http://guides.macrumors.com/Testing_RAM Then download & use Memtest & Ramber.
    Do you have an Apple Hardware Test disc (the AHT is on the Install/Restore DVD that came with your Mac)? Running the Apple Hardware Test in Loop Mode is an excellent troubleshooting step for finding intermittent hardware problems. It is especially useful when troubleshooting intermittent kernel panics. If Loop Mode is supported by the version of the Apple Hardware Test you are using, you run the Extended Test in Loop Mode by pressing Control-L before starting the test. Looping On should appear in the right window. Then click the Extended Test button.The test will run continuously until a problem is found. If a problem is found, the test will cease to loop, indicating the problem it found. If the test fails, be sure to write down the exact message associated with the failure.In some cases, RAM problems did not show up until nearly 40 loops, so give it a good run.
    May be a solution on one of these links.
    http://docs.info.apple.com/article.html?artnum=106227 What's a "kernel panic"? (Mac OS X)
    http://www.macmaps.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.index-site.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.thexlab.com/faqs/kernelpanics.html Resolving Kernel Panics
    http://www.macfixit.com/article.php?story=20060911080447777 Avoiding and eliminating Kernel panics
    http://macosg.com/group/viewtopic.php?t=800 12-Step Program to Isolate Freezes and/or Kernel Panics
     Cheers, Tom

  • Grafhic not work...  what is the reason ?

    hello,
    In the foolowing code I reproduced an "anomalous" behavior that I get when I use graphic functions.
    In the JPanel "PanelToDiplayGraphic", I simply write some words....
    This usually works;
    but if I (before to create the panel) read some data from a database, then the words are not displayed...._
    (I need to get informations from the database to use in the grafhic functions).
    I am not able to understand the reason why this can happen .
    Same one is able to explain me what is the reason ???
    // To use this program requires to have a valid connection to a database.
    // Here the connection comes from MakeConnectionToDataBaseMedident class and his the getConnection() function.
    // Of course, the String sqlStr in the accessToDataBase() function have to be properly changed too...
    package prove.volanti.storePicImages;
    import databaseManagement.MakeConnectionToDataBaseMedident;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class TestForBug extends JFrame {
        public TestForBug() { // constructor
            setTitle("title");
            setVisible(true);
            setSize(200, 150);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            // ======== part of program to chang to apply the test ...
            accessToDataBase(); // To test the anaomalus behavior put this row in comment
            // ======== part of program to chang to apply the test ...
            PanelToDiplayGraphic panelToDiplayGraphic = new PanelToDiplayGraphic();
            setLayout(new BorderLayout());
            this.add(panelToDiplayGraphic, BorderLayout.CENTER);
        }  // constructor
         * Simple function to access to tatabase
        private void accessToDataBase() {
            MakeConnectionToDataBaseMedident makeConnectionToDataBaseMedident = new MakeConnectionToDataBaseMedident();
            Connection connection = makeConnectionToDataBaseMedident.getConnection();
            Statement statement = null;
            ResultSet resultSet = null;
            String sqlStr = "Select * from skdPzPicsDetails   ";
            boolean validState = true;
            try {
                statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                resultSet = statement.executeQuery(sqlStr);
                validState = resultSet.last();
                int rowsNmbr = resultSet.getRow();
                System.out.println("Nmbr. rows = " + rowsNmbr);
                validState = resultSet.first();
                System.out.println("validState = " + validState);
                String tit = resultSet.getString("picTitle");
                System.out.println("Title =  " + tit);
            } catch (SQLException e) {
                System.out.println("Errrore = " + e.getMessage());
                e.printStackTrace();
        }  // accessToDataBase()
        static public void main(String[] args) {
            TestForBug xxxx =
                    new TestForBug();
        } // main()
         * Panel to display graphic
        class PanelToDiplayGraphic extends JPanel {
            @Override
            public void paintComponent(Graphics g) {
              g.drawString("TEST for use of the Graphic " , 10, 20);
    //            g.drawImage(image, 0, 0, this.WIDTH, this.HEIGHT, null);
        }// DiplayGraphicPanel
    } // TestForBugthank you regards
    tonyMrsangelo.

    thank you Encefophalopathic...
    The window seem to be normal (not froze), but I understand now that the cause of the anomaly could
    came from the parallelism of the threads ....
    I'll look in this way...
    Thank you
    By the course... I remember you gave me an advice some days ago ..
    you said :
    Finally, don't add a mouse listener to a JButton when an action listener,
    a class specifically built to capture button presses, is available.
    There are exceptions to this rule, but I don't see any here. I didn't answer then, but I should like know where I could learn more about how and where to use the listener class...
    I see this tip is more complex than it seemed to be...
    Now, for example, I need to catch event when an element in a checkBox is selected..
    I use event listner for this purpouse, but in this way I get the attivation of the event also
    when the comboBox component is created...
    How I sayd, I only should like to have a good link to read more about..
    thank you again
    regards
    tonyMrsangelo

  • When I turn on my iPad 1it stops the network connection to my windows xp pro computer. Ican fix the network connection by repairing  the windows machine network.  What is the reason thia is happening?windows

    When I turn on my iPad 1it stops the network connection to my windows xp pro computer. Ican fix the network connection by repairing  the windows machine network.  What is the reason this is happening?windows

    Are you using DHCP to allocate IP addresses via your router or Static IP allocation?
    You may have an IP conflict in your network.
    Check on your various network configuration parameters in your iPad, PC and WiFi router.

  • What are the best practices to extend the overall lifespan of my MacBook Pro and its battery?

    In general what are the recomended practices to extend the lifespan of my batter and other general practice to extend the lifespan and characteristics(such as performance and speed) like new on my MacBook Pro which this past fall (2011)?

    About Batteries in Modern Apple Laptops
    Apple - Batteries - Notebooks
    Extending the Life of Your Laptop Battery
    Apple - Batteries
    Determining Battery Cycle Count
    Calibrating your computer's battery for best performance
    MacBook and MacBook Pro- Mac reduces processor speed when battery is removed while operating from an A-C adaptor
    Battery University
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.

  • What is the benefit in using OID for names resolution?

    I have been wondering about this for awhile. I have been working on getting this to work in Iplanet along with Pat Lehane ([email protected]), and it works now.
    What are the benefits in using OID for names resolution when you can just use the static tnsnames.ora. Database and database names are not created dynamically and they don't change that often. Would creates a new database every day and has to worry about changing the static tnsnames.ora file. In my environment, we run Oracle applications from a server, so there is only one tnsnames.ora file, on the file server.
    It would appear that using OID would cause extra traffic (LDAP lookups) on your network.
    I would like some opinions from both Oracle and Oracle users. Thanks

    hi,
    A benefit of using OID for names resolution is that it allows you to centralize net8 naming (i.e., tnsnames) information in the same place (OID) where other types of administrative information (about users, enterprise groups, enterprise roles, etc) gets stored. If you are more comfortable using tnsnames.ora files for net8 naming, that is perfectly fine!
    An important reason that Oracle had for providing Net8 naming functionality in OID is that the legacy 'Oracle Names' functionality of Oracle 7 will eventually be desupported. This is discussed in metalink Note #135696.1 on http://metalink.oracle.com .
    Hope this helps.

  • Listener and gsd are unknown, what is the reason

    I just install 10g RAC on linux, everything was good. However, I shutdowned the whole system and started it again,
    my listener and gsd are unknown, what is the reason?
    rac1-> crs_stat -t -v
    Name Type R/RA F/FT Target State Host
    ora.devdb.db application 0/1 0/1 ONLINE ONLINE rac1
    ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
    ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
    ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
    ora....C1.lsnr application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.gsd application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
    ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
    ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
    ora....C2.lsnr application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.gsd application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
    ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
    rac1-> srvctl start listener -n rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.LISTENER_RAC1.lsnr' has placement error.
    rac1-> srvctl start listener -n rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.
    rac1-> tail -30 alert_+ASM1.log
    SUCCESS: diskgroup RECOVERYDEST was mounted
    Wed Aug 31 17:24:48 2011
    NOTE: recovering COD for group 2/0xc8787a38 (RECOVERYDEST)
    SUCCESS: completed COD recovery for group 2/0xc8787a38 (RECOVERYDEST)
    Wed Aug 31 17:25:01 2011
    Starting background process ASMB
    ASMB started with pid=17, OS id=6498
    Wed Aug 31 17:28:07 2011
    NOTE: ASMB process exiting due to lack of ASM file activity
    Wed Aug 31 17:29:00 2011
    Reconfiguration started (old inc 1, new inc 2)
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:01 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:01 2011
    LMS 0: 43 GCS shadows traversed, 0 replayed
    Wed Aug 31 17:29:01 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    rac1-> tail -30 alert_devdb1.log
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:35 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:35 2011
    LMS 0: 3118 GCS shadows traversed, 1733 replayed
    Wed Aug 31 17:29:35 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    Wed Aug 31 17:31:25 2011
    Shutting down archive processes
    Wed Aug 31 17:31:30 2011
    ARCH shutting down
    ARC2: Archival stopped
    Wed Aug 31 17:40:11 2011
    db_recovery_file_dest_size of 1500 MB is 14.40% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Aug 31 22:00:14 2011
    Thread 1 advanced to log sequence 3
    Current log# 2 seq# 3 mem# 0: +DG1/devdb/onlinelog/group_2.262.760635995
    Current log# 2 seq# 3 mem# 1: +RECOVERYDEST/devdb/onlinelog/group_2.258.760635997                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    add an entry in on both the nodes /etc/sysconfig/network DEFAULT_GATEWAY
    eg:-
    [oracle@rac1 ~]$ cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=rac1.localdomain
    DEFAULT_GATEWAY=192.168.1.10
    and try to start the service.
    if you would like refer:-http://oracleinstance.blogspot.com/2009/12/crs-0215-could-not-start-resource.html

  • I am writing datas into a FIFO ,i am reading datas from fifo .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place .what is the reason ?

    I am writing datas into a FIFO in FPGA Target side  ,i am reading datas from fifo in windows host side  .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?

    Please use a shorter title in your subject line and not post the entire question in therre.  (See the subject line I created.)   There is also no such word as "datas".  Data is already plural.
    Please read http://stackoverflow.com/help/how-to-ask.  Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences.  It looks like one run-on sentence.
    Beyond that, it is impossible to help you solve our problem with just your question.  Please provide some more information.  Perhaps even attach code we can look at.  Show us what the data you are sending is supposed to look like, and what it actually looks like.

  • ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR

    hi... experts....
        Iam having one screen in my previous module pool program....and now as per my requirement i added on e new field...
    for that...
      1. i declared one variable in top include...
      2. cretaed one more new block with help of box in layout screen..
      3. added some text field and inputput out field...
      4. and in that block i also added one line with test like... following...
    " NOTE: PLEASE ENTER THE ..... VALUE..."   Like this.... just for to give direction...
    so these are  the steps i taken to add new field to my screen... but here i am geting error ... while entering the value in that field and press any push button.... including back in that screen... like....
      "INVAILD FIELD FORMAT (SCREEN ERROR)"
    .... ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR... COMMONLY???
    THANK YOU,,,
    NAVEEN..

    hi naveen,
    there can be problem from ur layout side.
    Goto SE51. in Layout editor make sure that the type in screen and in TOP Include is same.
    and if you are using currency field than it can also give error to you.
    if still you any error .
    give me type of variable whcih you defined in TOP and also code.
    give reward if helpfull.

  • What is the advantage of using Wrapper Classes ?

    Hi friends,
    I am happy to join Java/J2EE tech. My project is scaled over the network. MVC-II struts, EJB based architecture, we are using.
    We are asked to use Wrapper Classes in in Java programs and not the primitive data types. I could not understand the reason.
    Pls tell me what is the advantage of using Wrapper Classes over the primitive data types ?
    means Integer instead of int, etc....

    Hi friends,
    I am happy to join Java/J2EE tech. My project is
    scaled over the network. MVC-II struts, EJB based
    architecture, we are using.
    We are asked to use Wrapper Classes in in Java
    programs and not the primitive data types. I could
    not understand the reason.
    Pls tell me what is the advantage of using Wrapper
    Classes over the primitive data types ?
    means Integer instead of int, etc....I am not sure why use Integer over int; but Wrapper classes are used to remove coupling between classes and create one hand doesn't know what the other hand does effect.
    for example:
    when you have a SFTP java package but doesn't do everything that your application needs to do in one step and you need to do sftp stuff at many places in your application, it would be wise not to use SFTP java package directly from all the classes that need to do sftp stuff. Because if you were to change the SFTP package later due to say some bug fix or newer version or ... you would have to go and modify all the classes that had sftp stuff to update.
    Instead you could write a custom sftp wrapper that handles all the sftp stuff for your application needs and that wrapper deals with the SFTP java package. So all the classes don't need to know which SFTP java package is being used only the custom-wrapper needs to know.

  • What is the advantages of using Interface?

    Hi,
    I still don't get what's the advantages of using interface. Reusability? is it the main advantage? thanks in advance.

    What is GOF?
    Interface is a good program practice when working with RMI (Remote Method Invocation) application. Imagine your anti-virus. When you connect to internet your software invoke a method into your software vendor site and download the new definitions. Now every anti-virus Subscription is different. The method you invoke, will depends on your Subscription. If you hard code the method abstractly, you will not achieve this functionality.
    Another concept is that because Java does not practice multile inheritance interface is a goog way to interface into another class.
    Example
    I want to extends to multiple class which java do not support. I will write an interface i.e I want to extends to FileOutputStream, OutputStream, Object, Integer, String, ActionEvent, Window etc.
    I will write an interface like this
    interface MyClass {
    pulic void setFileOutputStream ( FileOutputStream file );
    public void setOutputStream ( OutputStream );
    public Object getObject ( );
    public Seriable getInterget ( )
    ------------------- //You get the gist
    With this interface you can implement they behaviours
    You could say, why don't we just import them. When yo import them you have already hard coded there behaviour. But this way you can apply diferent behaviour throughout you application development. And any class that implement them must provide ways of using it.

Maybe you are looking for