Need new access specifier

I think there must be another access specifier that is like protected but not friendly, I mean only the supclasses can access that, not the classes in that package.
Suppose a class that has private or friendly fields and I had to define another field of the same type for its subclass.
Or I have a class with a protected field that I know I will use it if I want to define a subclass of it. But I don't want to let the other classes in thatpackage modify this field unintentionally.
The problem is not only for fields. There are situations that I want to permit subclasses to call a method but I don't want other classes in the same package call it.

there isn't.
perhaps you need to think more about which classes sit in which packages ?
maybe a better package structure would give you this control.

Similar Messages

  • New to java(need help on access specifier)

    hi! i am new to java.plzzzzz help me i have to make a project on access specifier's i know all theroy.but
    i am unable to understand how i can define all specifiers practicly.i mean in a program.
    thanks.plzzzzzzzz help me

    the most common project i can think of is a payroll system..
    you can have real implementation of all the access specifiers
    good luck

  • Can no longer access my itunes account because my riginal computer no longer works. Now need to access prepurchased apps to download on my Ipod since i had to reset it. I have a new laptop.

    Can no longer access my itunes account because my original computer no longer works. Now need to access prepurchased apps to download on my Ipod since i had to reset it. I have a new laptop.

    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud, iTunes Match, and iTunes Radio availability by country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Downloading previously purchased movies and TV shows requires iTunes 10.6 or later. Discontinued items not available. For items not included in the iCloud list (e.g., ringtones, audiobooks), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid. Apple recommends, "You always back up your iTunes library in the event that a purchased item is no longer available on the iTunes Store," (http://support.apple.com/kb/ht2519).
    You will be using your original AppleID and password.  that works for any computer you own now or in the future.  Do not make a new appleID.

  • I did a system restore on my iphone 2 and used a new name (Allan 2). Now I need to access my original iphone apps on itunes,  Where do I find my first phone display an itunes? thanks

    I did a system restore on my iphone2 and used a new name for thr phone on ituhes (Allan2).  Now I need to access my saved apps on the original phone name.  How do I find the two phone profiles on itunes.  When I open it with my phone it only shows Allan2. Thanks

    If your apps were in itunes on your computer, then they should still be there.  Just sync them back to the iphone.
    BTW, the backup that itunes performs when syncing does NOT include music/apps/movies/tv shows etc.
    Anything purchased on the iphone would have to be transferred to your computer.  File>Transfer Purchases
    Unlike music/vids/etc, you can redownload apps
    How to redownload purchased apps from the App Store

  • HT201250 I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    Use Migration Assistant on your new Mac:
    Click Continue:
    On the next screen, choose your Time Machine backup disk.
    Don't bother to migrate Applications unless you know they will work on your new Mac. For example, PowerPC applications won't work. Just migrate your user account which will copy all your photos, music, movies, and other documents.
    Note: you will not be able to migrate the information to same account in which you are already logged in. Migration Assistant will tell you that and recommend what to do. It can migrate the information to a new account, but you will have to give it a name you might want to change later. One way around this is to create a temporary account, log in to it, and run Migration Assistant which will replace your normal account. Then, log out of the temporary account, log in to your usual one, verify everyting works as you expect, and delete the temporary one.
    All this can be avoided when you set up a brand new Mac by running Setup Assistant which essentially does the same thing to create your new account, but most people are too excited to do that and elect to migrate later.

  • WRT330N needs new firmware!

    I have owned a WRT330N since April 2007, and have noticed several issues with the unit. Some may be specific to my unit, but some are firmware related. What is most troublesome is that I reported the single port forwarding bug to Linksys back in May 2007, and they still have not produced new firmware...
    I list these issues not so much for help from this forum, but to share information with those who already own a WRT330N, or are thinking about getting one. These issues still exist with the newest firmware (1.00.3).
    Issue #1: Single port forwarding bug. Although the pulldown would indicate that you can specify TCP, UDP, or Both, no matter what setting you configure, it always displays (and saves) the protocol as TCP. I confirmed this by trying to single port forward TeamSpeak and setting it to UDP. Did not work. If I go to Port Range Forwarding, and configure it for a single port and for UDP, TeamSpeak works fine. Thus, all my single port forward rules that need UDP or Both have to be listed under Port Range forwarding.
    Issue #2: Over time, I have changed MANY settings on this unit. Most recently, devices attached to the WRT330N would periodically be unable to communicate to the router IP (192.168.1.1 by default). Pinging the IP just timed out. This condition would happen several times an hour, but only for a second or two. Reflashing the firmware seemed to resolve the problem. Note: this was not a firmware upgrade, I was already at 1.00.3; I just reflashed 1.00.3.
    Issue #3: Config file bugs. I have noticed that if I change a LOT of settings on the unit, then save the config file, I am unable to load the config file (router claims it is corrupted). This occurred not only on my WRT330N, but also on my WRT54GX as well. However, I did notice that I was able to save, then successfully load, the fully customized config file immediately after reflashing the firmware.
    Issue #4: Along with #2, the wireless transmitter seems to stop broadcasting for a minute or two several times a day. I will have a perfect connection for hours, and then bam, no signal. A minute later the signal returns. This issue MAY have disappeared after reflashing.
    Linksys is sending me a replacement unit in case this is a hardware problem, for which I am grateful. Unfortunately, this will not resolve #1 or #3, and Linksys' refusal to release new firmware is most troublesome.

    Hello,
         Just adding my name to the list of folks who believe that this router does need new firmware.   I had a WRT54G v2 for serveral years and as of late it had developed the bad tendancy to do something very odd with DNS queries, after a hard reset it would clear up for a while, but eventually would come back.  I figured that after several firmware updates over the years I'd just gotten a bad flash.
         I picked the WRT330N to replace it primarally just because I wanted a router that had a Gigabit Switch integrated and had prior good luck with LinkSys products.  It just seems that the new router doesent have some features that the old one did (i.e. it's a step backwards).
    1. If I port forward port 80 to my web server, and then use my external domain name which goes to my external IP, the router doesnt get me there.  My WRT54G did this with no difficulty.
    2. I could find no option to disallow access to the web configuration from the wireless.
    3. The router seems to reboot whenever you change trivial settings.  Much more often than the WRT54G.
    I dont know if LinkSys product planning looks at this, however I for one would say that I'd be happy with a WRT54G that was just updated with a Gigabit Ethernet Switch and otherwise all the same features as it had previously (including keeping the form factor that stacks on other linksys devices).

  • Step to create new access sequence

    Hi SAP gurus,
    Can anyone teach me how to create new access sequence?
    I am zero knowledge on this. Need help from A to Z.
    I only know how to maintain the pricing VK11.
    If the info already discuss before, kindly need ur kindness to link it for me...

    Hi you can define access seq. in T-code v/07
    You can define prices, discounts, and surcharges at various levels. Each level
    is defined by a condition table. An access sequence consists of one or more
    condition tables. The order of the entries in an access sequence defines the
    hierarchy of the various levels. The system determines the condition records
    in the sequence specified.
    Within each access of an access sequence, you can specify the document field
    or source field with which an access is performed. You can make access
    dependent  on requirement to avoid unnecessary access, thus reducing the
    system load.
    For better understanding go through pricing procedure.
    Reg pricing procedure.
    1. Use transaction code v/07 to create a access sequence and assign tables based on which you want to carry on 
        pricing as accesses.
    2. Use transaction code v/06 to define condition type. It can be for base price, discount, freight etc.,
        (Do assign relevant access sequence)
    3. Use transaction code v/08 to define pricing procedure.
    4. Assign this to your relevant sales area+ dpp+cupp.
    I hink it will help u.
    Best Regards
    Sainath

  • I desperately need to access my User Library folder in Time Machine (Lion so = not visible).

    Hi. I installed Lion a few months ago and got a new external drive to back up Time Machine.
    Nobody told me the User Library would be made hidden in the new OS. I have been backing up regularly in the belief that all my work, settings and so on was safe.
    Yesterday my iMac (27" 2.8 Ghz Core it with 4 gib memory) suddenly went mad. Message saying finder had quit whilst trying to restore windows. Desktop was flashing, no icons clickable, no external disks readable. Could access some progs and terminal, but nothing else. Could not get into the history folder to trash various plists and so on as the folder is hidden and the alt Go wouldn't work. The Finder just wouldn't do anything.
    I have sorted it out BUT I have lost my address book entries, my browser booksmarks, my desktop shortcuts and my iCal entries. I need to access my User Library on my Time Machine. Is there a way?
    I cannot believe I have been religiously backing up my stuff but Apple has made it so I can't access my backup of one of the most important folders on my Time Machine???
    Is there anyway of getting into this from Terminal or something? I will never be able to get back all the bookmarks and stuff I've been researching for years. I have it backed up on two different hard drives, both of which have 'invisible' library folders. I have make the folder visible now, for future backups, but it's after the horse has bolted. I am furious, and just feel like bursting into tears because of all the time it's going to take me to get all my work back. I can't tell you how stupid this was, Apple.
    If someone could help I'd be really grateful. I've got older backups but they are so old they won't get back my recent stuff.
    Thanks.

    select Finder
    hole option key and select Go in the menu
    Select Library
    Enter Time Machine
    You should be seeing all the versions of you Library folder.

  • Creating a new access database using JDBC

    Hi Forum,
    I have a problem in hand. Let me describe the problem:
    I want to create an "access database" from java at runtime. "Access database" is file based, so for a database named test, it will have a file test.mdb.
    Now, everything's sweet and wonderful, if somebody creates an "empty access database" at the client machine and i then connect to it and create the tables i require.
    But the issue is i want to create the database at runtime (the database name and tables are determined at runtime).
    Using the JDBC:ODBC bridge driver , i am able to connect to an existing database, but any "create database" statements are not supported.
    A last ditch solution would be that i create an empty database using access and copy the file contents in the SQL server database as a a blob object. Then when i want to create a new access database at runtime, i create a file in a particular folder , with an .mdb
    extension, copy the file contents from the SQL server (i also have an SQL server connection) BLOB object, and then try to connect to the
    .mdb file.
    But this approach seems a "quick hack" and can have problems (which i can't see as of now).
    Can you suggest a better alternative for the problem.
    See the Java Sun forum at this address for a discussion of a similar problem, but sadly with no solution.
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=484731

    I have an applet that was previously connected to Oracle 9i. I am faced with connecting to MS Access temporarily for testing purposes.
    I have been unable to successfully code connection in java. I have set up the DSN and can access in SQL Worksheet in JDev.
    I saw your question regarding creating an access db, and thought you might be so kind as to help me code the connection to access!!!!
    Any help you could provide would be greatly appreciated. I have a huge application to finish with alot of sqlj already completed. Connectivity is not my area of expertise!
    Any help you could provide would be greatly appreciated!!!
    I am not sure if I have to use bridge? Am I progressing in right direction to migrating to SQL Server if need be?

  • Error message need newer version since Yosemity

    Since the OS X update on my Macbook Pro to Yosemity, I can't open many numbers files and get the 'need newer version to open' error message. I've updated everything to the latest version. There is only 1 numbers program in my programs directory, no older versions as long as I can see. Tried to open fromout Numbers and from Finder with the 'open with' function. Always the same error. Please help. Need to access my files.
    Macbook Pro Retina
    OS X Yosemity 10.10.1
    Numbers 3.5 (2109)

    Hi Robert,
    Updating to Numbers 3 (Yosemite) did not remove Numbers '09 from your machine.
    Wayne Contello has written a User Tip for working with the old and new versions of iWork.
    Need newer version of Numbers to open file
    Happy Numbering!
    Regards,
    Ian.

  • Create New Access Sequence for Free Goods

    Hi Guru,
    please help me, I need to do a new Access Sequence for Free Goods, different from standard SAP. (Vendor/Material/Purch. organization)
    The new sequence of access for "Vendor/Plant/Material", I have already created, but at the time that the use in condition, being created PO not shoot the discount goods. (despite having loaded a record condition with MBN1)
    Please help me, to create a condition of discount goods that shots for "Vendor/Plant/Material".
    Tank you
    Miki

    Thank you for your interest,
    but unfortunately I have already made this assignment Field.
    Please help me, there must be a way to run the discount goods.
    Tank you
    Miki

  • New Access Sequence for Tax based on material Group

    Hello All,
    Our requirement is that we tax our employees on apparel only if the value is greater than $50.00.
    To achieve this, we created a new tax condition table (953 which is copied from 053) and assigned it to access 09 in the access sequence ZTX1 (created w/ref from TAXJ). We added material group (MATKL) to the condition table and selected exclusion indicator for the access.
    We created the condition record in FV11.
    When we created the sales order, the new access sequence (09) is not being accessed. It gives a message "Access not made (initialized field)" Message 102(VE).
    Please advise if we are missing something.
    Thanks,
    Leela

    Hi Leela,
    Are you creating sales order in the same system like
    You have created table in Development system in same system your are creating sales order
    If you are creating here you just go to V/07 transaction then slect your access sequence go in to the tables detail screen here you select your table 953 then click on fields here you check all the fields are available correctly or not then save the changes.
    Now try
    or
    You transported these confugaration to other system like Quality or Production here and you are creating the sales order,
    If you are creating here you need to create condition table again then try.
    I hope it will help you,
    Regards,
    Murali.

  • I am using Lightroom 3 and need to access a catalog I created with a trial version of Lightroom 4.

    I need to access a catalog I created with a trial version of Lightroom 4.  I am currently using Lightroom 3.  Can someone help me find a way to get my images from this catalog?  I don't want to upgrade at this point as I am running on a mid 2007 iMac and would need to buy new RAM, upgrade my OS, etc....  I would rather wait and spend the money on a new system when I'm ready.

    Hi Rikk,
    I just saw your answer to Deborah,
    Does this mean catalogs not backward compatable in regards to metadata and keywords as well?
    I am working on a giant archiving project here in India. The main system here is a Mac G5 Tower at 10.6.8, and it's running LR 3.2.  I have my MacBook  Air here, running Mavericks and LR 4.4.1.
    I want to take the archive catalog OFF of LR 3.2, put it on the Air, running 4.4.1 - then ADD metadata and keywords to the catalog images while on the Air and THEN re-install/import/export/etc the catalog back to the main tower LR 3.2 with out starting a huge problem of version/upgrades/etc. That way another person can be using the tower to scan while I do keywords.
    I have only a week more here for this project. If anyone knows asap would be great. Thanks in advance.
    Barbara

  • Why do we need write access to Java installation Directory

    We are Upgrading from Siebel Analytics 7.8 to OBIEE 10.1.3.4.
    As OBIEE needs Java 1.5 or higher as a pre-requisite we are planning to uninstall Java 1.4 and install latest version of Java 1.5.
    According to OBI Installation and Configuration Guide http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31765.pdf -> Page 39 "If you are installing using the Basic installation type, make the user or user group permissions
    writable for the user installing Oracle Business Intelligence, for all JDK 1.5.0 installation directories,
    subdirectories, and files". Can anybody let me know why we need write access to Java Installation Directory??
    Thanks,
    Chandra
    Edited by: user6086408 on Apr 5, 2010 3:07 PM

    I had this same question and asked Oracle. Here's what I was told:
    Per Dev:
    "For OBI Presentation Services and OBI Publisher, jdk fonts files are copied into the JDK location because we do not bundle our own JDK. To ensure the install can do this you need to ensure that the Oracle BI installer has permissions to copy files to the specified JDK location.
    This means that if the same user who installer/untarred JDK is also installing Oracle BI, the install should work. In this case the the permissions of the JDK is probably 755.
    It will not work if a root user installs JDK and a normal user installs Oracle BI because the normal user does not have access to write to the JDK location or will not work if the JDK location is read-only, i.e. 444. In this case running chmod -R 777 will work."
    Jerry

  • Regarding Protected access specifier

    Hi ,
    I thought that indeed you could access protected data member from another package IF you are using Inheritance. It makes the data memeber in question "friendly" to the derived class. At least that is my understanding.
    You can not access protected data element directly in different packages. package test1;
    public class Test123 {
    protected int x=42;
    package test2;
    import test1.Test123;
    public class Test234 extends test1.Test123{
         public static void main(String args[]){
              Test123 ob=new Test123();
              System.out.println("x="+ob.x);
    but My question is that ..if u run this program its not compile..Compile time exception is throws saying that the field Test123.x is not visible..but according to protected access specifier this will work...and one thing that if i make field ' x ' of Test123 as public it is working... How it is possible ...can anybody pls help it out.. Thanx in advance...

    This access is provided even to subclasses that reside in a different package from
    the class that owns the protected feature.As you have found this (and similar) can be confusing.
    Have a look at the Java Language Specification (http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6.7) "6.6.7 Example: protected Fields, Methods, and Constructors". Can you see the difference between the delta() and delta3d() methods?
    "A protected member or constructor of an object may be accessed from outside the package in which it is declared only by code that is responsible for the implementation of that object." As another example of this, the following compiles OKpackage test2;
    import test1.Test123;
    public class Test234 extends test1.Test123 {
        public static void main(String args[]) {
            Test234 ob = new Test234();
            System.out.println("x=" + ob.x);
    }When run it prints "42" - showing that the same d@mn field is being accessed! Like you, I'd appreciate hearing a simple rationale for this (if there is one).

Maybe you are looking for