How is this called and what is it for?

I would google it but have no idea of how to look for it.
I found in a book:
public class Foo {
          private final Object attribute  = new Object() {
               protected void method() throws Exception {
}Could anybody tell me what's the name of this structure or where can I learn about this? First time I see a block { } after assigning a value.

lusop wrote:
jverd wrote:Why would that matter? This is an open, public forum, for free discussion of ideas. Very often the best responses are the ones that don't directly answer the specific question the OP asked.All due to respect, I absolutely disagree. You're right but it's not the case we are talking about. I think writing this question in a forum called "New to Java" is more than fair. I've answered already few basic questions here about arrays and classes being private and don't answer anybody "RTFM", because it's obvious they're still reading it.Nonetheless, RTFM is still often an appropriate response, regardless of whether they already are doing so.
>
jverd wrote:If you want to control what kinds of answers you get, pay someone to answer your questions, and make it clear that their job is to only answer the exact question you ask, no matter how misguided it might be.Not my fault if you had a bad day, dude.....Not having a bad day at all. Don't assume. Just trying to clear up your misconceptions.

Similar Messages

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • TS3376 just installed find my iphone app and when I logged in on the app and on the computer, it showed the location of someone else's iphone in the same building as me!!!! how does this happen and what do i do to see mine instead?

    Just installed Find my iphone app and when i logged in on the phone and then on my computer, it showed me somebody else's device that is in the same building as me and not my device...how do I fix this?

    we have problem solved:-)

  • Unable to use my email addy to sign up for things, says already used but i never signed up before how is this possible and what can i do?

    Tried to sign up for walmart savings catcher and ancestry.com. Both sites said that email address is already in use. I never signed up for these in the past. finally signed in walmart savingscatcher with work address but cannot do ancestry research at work. How is someone using my address and how can I get this fixed?

    This problem is not a Thunderbird issue and is outside the scope of this forum.

  • The loading bar at the bottom of my browser has disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the lastest version of Firefox 3.6.3 and Windows XP.

    The loading bar at the bottom of my Firefox browser has suddenly disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the latest version of Firefox 3.6.3 and Windows XP. I have many add ons and I usually automatically install the recommended updates. This problem has never happened before and switching my browser on and off again does not solve the issue.
    == This happened ==
    Every time Firefox opened
    == I am not sure why this suddenly happened. I think it may have been after my usual updates but I am not sure if that has anything to do with it at all.

    Loading Bar? Maybe the URL/address bar where you type sites you want to go to (like www.google.com)? See Navigation Bar below. You may also need to see the first item "Can't see the Menu Bar".
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    You can un-install the Mozilla ActiveX control as Firefox no longer uses it and hasn't since, as I recall, version 2. See: [[ActiveX]]
    To remove Tools > Add-ons > Extensions, click on the item, click Uninstall, click Restart Firefox in the Extensions window.
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10''')
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original

    Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original SIM card Verizon and I try to activate, says: (error occurred activation, if this problem happen again please call at +1................). this is the hour to use it through the R-SIM 9 pro. everything works нормальнои calls and Internet and SMS, but I want to officially unlock. beforehand thank you

    Well, you managed to find this support forum didn't you and you have an internet connection don't you?  Then if you have all these things, go and find the number by going to the Verizon website and it should not be hard to find the number.
    As for speaking English, this is not really our problem and it is surely something that you should have thought about before buying the phone in the first place.
    You also need to know that Verizon in the US is a cdma operator and if you purchased an iPhone 4s, then it should not be locked.  The Verizon 4s comes with a sim card tray that should be unlocked out of the box for use internatinoally on gsm networks, so all you should need to do is open the sim card tray and insert a sim card and you should pick up the local gsm network.
    A cdma phone does not actually use a sim card, so there would be no original sim card with the phone because when it is used in the US it will pick up the Verizon cdma network without a sim card.  The sim card is only for use on a gsm network which will not work in the US, but is designed to work outside the US.  Open the sim card tray and insert your own local sim card and the phone should work and should not be locked.
    Other than this, if you purchased the phone in the first place, it is the responsibility of the previous owner to cancel the Verizon contract.  This is nothing to do with you, so contact the seller and ask them.
    Other wise, go to the Verizon website and look up the number and call them.  As they are the phone company, ultimately, they are the only ones who can help you.

  • What is this Symbol called and what does it mean?

    What is this symbol/icon called and what does it mean?  It goes away with it's "notification" and I would have no idea where to find it should I need to.
    Please.  And thank you.

    It did come from Apple as I had to deal with this.  But in speaking with another "Genius" I was trying to describe the symbol to him and never got an answer.

  • I have an battery issue i bought my iphone 4 from U.k. and right now i want replace my batter in India how can i do and  what's i have to pay for this

    I have an battery issue i bought my iphone 4 from U.k. and right now i want replace my batter in India how can i do and  what's i have to pay for this.
    Is there any one listening me why apple boys selling this stupid thing which have so poor battery life which gone dead after 3 monts of battrey use.

    http://support.apple.com.au/wts/in/
    This link gives you the service options for India
    They  MAY repair it
    They  WILL charge you
    How much ,no idea

  • How to shrink this LOB and what steps need to perform.

    Problem Description: hi
    one of our production database having one table i that table having 320 gb LOB in one column
    can you please suggest how to shrink this LOB and what steps need to perform.
    during shrinkg of LOB how much undo tablespace is require,and does it create more archive log because LOB size is 320gb.
    this table having function based index also.so we will not shrink it.
    we need to release the space from database this in only big LOB out of my DATABASE its took approx. 80%.
    there is any way we can reclame this space with less time.
    please suggest how to do this and how much downtime is required.
    database version 10.2.0.4 and OS AIX 5.3

    Hi;
    Please check below which could be helpful for your issue:
    Shrink LOB Segment On Partitioned Table [ID 802059.1]
    How to determine the actual size of the LOB segments and how to free the deleted/unused space above/below the HWM [ID 386341.1]
    Why is no space released after an ALTER TABLE ... SHRINK? [ID 820043.1]
    Troubleshooting Guide (TSG) - Large Objects (LOBs) [ID 846562.1]
    Regard
    Helios

  • My mother contacts disappear when she sends a message or call someone, how is this possible and how to fix it?

    My mother contacts disappear when she sends a message or call someone, how is this possible and how to fix it?

    Technically the limit of 4Gb per folder should have been removed in a recent patch. Personally I an unconvinced as the developers have said so twice before and something else arose to bite people at 4Gb. So the limit probably does not exist anymore and moving mail and compacting will fix it without data loss if it occurs as recent issues have been about displaying mail after the 4Gb point, not storing it.
    Use the Ctrl and Shift keys in conjunction with your mouse to make multiple selections.
    click followed by Shift+ Click selects everything between the two clicks, including the items clicked.
    Holding the Ctrl key while clicking allows you to select or deselect mail to either fine turn the list from shift clicking or to make one of your own.
    Ctrl +A selects everything in the list from the current selection to the end.
    One option is create an important folder and move your important stuff to it then ctrl +A the whole remaining inbox.

  • How to find Latch and what actions need to be taken when there is a latch

    Hi
    Can you please tell me how to find Latch and what actions need to be taken when there is a latch?
    Thanks
    Regards,
    RJ.

    1. What is a latch?
    Latches are low level serialization mechanisms used to protect shared
    data structures in the SGA. The implementation of latches is operating
    system dependent, particularly in regard to whether a process will wait
    for a latch and for how long.
    A latch is a type of a lock that can be very quickly acquired and freed.
    Latches are typically used to prevent more than one process from
    executing the same piece of code at a given time. Associated with each
    latch is a cleanup procedure that will be called if a process dies while
    holding the latch. Latches have an associated level that is used to
    prevent deadlocks. Once a process acquires a latch at a certain level it
    cannot subsequently acquire a latch at a level that is equal to or less
    than that level (unless it acquires it nowait).
    2. Latches vs Enqueues
    Enqueues are another type of locking mechanism used in Oracle.
    An enqueue is a more sophisticated mechanism which permits several concurrent
    processes to have varying degree of sharing of "known" resources. Any object
    which can be concurrently used, can be protected with enqueues. A good example
    is of locks on tables. We allow varying levels of sharing on tables e.g.
    two processes can lock a table in share mode or in share update mode etc.
    One difference is that the enqueue is obtained using an OS specific
    locking mechanism. An enqueue allows the user to store a value in the lock,
    i.e the mode in which we are requesting it. The OS lock manager keeps track
    of the resources locked. If a process cannot be granted the lock because it
    is incompatible with the mode requested and the lock is requested with wait,
    the OS puts the requesting process on a wait queue which is serviced in FIFO.
    Another difference between latches and enqueues is that
    in latches there is no ordered queue of waiters like in enqueues. Latch
    waiters may either use timers to wakeup and retry or spin (only in
    multiprocessors). Since all waiters are concurrently retrying (depending on
    the scheduler), anyone might get the latch and conceivably the first one to
    try might be the last one to get.
    3. When do we need to obtain a latch?
    A process acquires a latch when working with a structure in the SGA
    (System Global Area). It continues to hold the latch for the period
    of time it works with the structure. The latch is dropped when the
    process is finished with the structure. Each latch protects a different
    set of data, identified by the name of the latch.
    Oracle uses atomic instructions like "test and set" for operating on latches.
    Processes waiting to execute a part of code for which a latch has
    already been obtained by some other process will wait until the
    latch is released. Examples are redo allocation latches, copy
    latches, archive control latch etc. The basic idea is to block concurrent
    access to shared data structures. Since the instructions to
    set and free latches are atomic, the OS guarantees that only one process gets
    it. Since it is only one instruction, it is quite fast. Latches are held
    for short periods of time and provide a mechanism for cleanup in case
    a holder dies abnormally while holding it. This cleaning is done using
    the services of PMON.
    4. Latches request modes?
    Latches request can be made in two modes: "willing-to-wait" or "no wait". Normally,
    latches will be requested in "willing-to-wait" mode. A request in "willing-to-wait" mode
    will loop, wait, and request again until the latch is obtained. In "no wait" mode the process
    request the latch. If one is not available, instead of waiting, another one is requested. Only
    when all fail does the server process have to wait.
    Examples of "willing-to-wait" latches are: shared pool and library cache latches
    A example of "no wait" latches is the redo copy latch.
    5. What causes latch contention?
    If a required latch is busy, the process requesting it spins, tries again
    and if still not available, spins again. The loop is repeated up to a maximum
    number of times determined by the initialization parameter SPINCOUNT.
    If after this entire loop, the latch is still not available, the process must yield
    the CPU and go to sleep. Initially is sleeps for one centisecond. This time is
    doubled in every subsequent sleep.
    This causes a slowdown to occur and results in additional CPU usage,
    until a latch is available. The CPU usage is a consequence of the
    "spinning" of the process. "Spinning" means that the process continues to
    look for the availability of the latch after certain intervals of time,
    during which it sleeps.
    6. How to identify contention for internal latches?
    Relevant data dictionary views to query
    V$LATCH
    V$LATCHHOLDER
    V$LATCHNAME
    Each row in the V$LATCH table contains statistics for a different type
    of latch. The columns of the table reflect activity for different types
    of latch requests. The distinction between these types of requests is
    whether the requesting process continues to request a latch if it
    is unavailable:
    willing-to-wait If the latch requested with a willing-to-wait
    request is not available, the requesting process
    waits a short time and requests the latch again.
    The process continues waiting and requesting until
    the latch is available.
    no wait If the latch requested with an immediate request is
    not available, the requesting process does not
    wait, but continues processing.
    V$LATCHNAME key information:
    GETS Number of successful willing-to-wait requests for
    a latch.
    MISSES Number of times an initial willing-to-wait request
    was unsuccessful.
    SLEEPS Number of times a process waited a requested a latch
    after an initial wiling-to-wait request.
    IMMEDIATE_GETS Number of successful immediate requests for each latch.
    IMMEDIATE_MISSES Number of unsuccessful immediate requests for each latch.
    Calculating latch hit ratio
    To get the Hit ratio for latches apply the following formula:
    "willing-to-wait" Hit Ratio=(GETS-MISSES)/GETS
    "no wait" Hit Ratio=(IMMEDIATE_GETS-IMMEDIATE_MISSES)/IMMEDIATE_GETS
    This number should be close to 1. If not, tune according to the latch name
    7. Useful SQL scripts to get latch information
    ** Display System-wide latch statistics.
    column name format A32 truncate heading "LATCH NAME"
    column pid heading "HOLDER PID"
    select c.name,a.addr,a.gets,a.misses,a.sleeps,
    a.immediate_gets,a.immediate_misses,b.pid
    from v$latch a, v$latchholder b, v$latchname c
    where a.addr = b.laddr(+)
    and a.latch# = c.latch#
    order by a.latch#;
    ** Given a latch address, find out the latch name.
    column name format a64 heading 'Name'
    select a.name from v$latchname a, v$latch b
    where b.addr = '&addr'
    and b.latch#=a.latch#;
    ** Display latch statistics by latch name.
    column name format a32 heading 'LATCH NAME'
    column pid heading 'HOLDER PID'
    select c.name,a.addr,a.gets,a.misses,a.sleeps,
    a.immediate_gets,a.immediate_misses,b.pid
    from v$latch a, v$latchholder b, v$latchname c
    where a.addr = b.laddr(+) and a.latch# = c.latch#
    and c.name like '&latch_name%' order by a.latch#;
    8. List of all the latches
    Oracle versions might differ in the latch# assigned to the existing latches.
    The following query will help you to identify all latches and the number assigned.
    column name format a40 heading 'LATCH NAME'
    select latch#, name from v$latchname;

  • Many songs in my library appear to be duplicates. How did thta happen and what do I do?

    Many songs in my library appear to be duplicates. How did that happen and what do I do?

    henryfromcolonial beach wrote:
    A recent download - which I automatically said OK to, has somehow made every image in my library into low res.  when I try to use one as a screen saver, it is low res - when I try to print one, it is low res.  was this some kind of setup to get me to buy a newer version of iphoto??????
    Of course not - in fact it is not something done by iPhoto - it is most likely a user error
    What exactly did you do? What did you download? there is nothing in iPhoto that ever changes the resolution of any photo - in fact you can not do it if you want in iPhoto - you have to export photos to a location outside of iPhoto to change the resolution
    have you loaded your backup from before you did what ever you did? That is probably the fastest and easiest way to resolve the problem
    LN

  • HT204003 if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    actually i found out how to fix it
    1 sign out of apple account
    2 close down passbook app
    3 change year to 2013
    4 reopen passbook and sign in at the button with your apple ID
    5 change the time to auto update and it should work from now on.
    this worked for me let me know if it work for you:)

  • My HP 3054 printer/scanner worked very well for my needs, but today I tried to scan something and I get this message:(com.apple.ImageCaptureCore error -9922.) What does this mean and what can I do to get my scanner to work again?

    My HP 3054 printer/scanner worked very well for my needs, but today I tried to scan something and I get this message:(com.apple.ImageCaptureCore error -9922.) What does this mean and what can I do to get my scanner to work again?

    i have this too on my hp photosmart b210
    no one seems to know how to fix it!!

  • OnChange() event how does it work and what is the syntax

    hi,
    i have a field (County) on a form in a jsp page that needs to get all its values from the database and present it to the user also i have another field (year) this also needs to get all its values as a drop down from the database.
    i dont have any lib tag available to use and can't afford the time to set this up. so just have to script in jsp or use beans in jsp.
    my question is 2fold
    Q1. - i was thinking of having a DataAccess (dA) object to run a sql to select * distict couties ...
    also have another query in DataAccess select * Distinct year....
    and in the jsp instantiate the (dA) and iterate through and fill the select drop down box - how to code this syntax i'm not sure and if this is the correct approach or the only approach would appreciate some sample code that i can mess around with thanks.
    - is above approach best way of doing this. - also taking into account Q2.
    Q2 - when the user selects county then i need to fire a onChange event - probably using javascript but not sure how this works - bascially i need to then update the year drop down according to the below sql-
    again how is this possible - and is this the best approach or will it be too many calls to the database - especially consdering that the forms are all part of a search tool.
    SELECT     DISTINCT     v.year
    FROM          v_volumes     v
    WHERE          v.county     = <the selected county>
    OR          (v.county_reference     =
                   (SELECT     ca.county_reference
                    FROM          county_aliases     ca
                    ,          counties     c
                    WHERE     ca.county_reference_also_called     = c.county_reference
                    AND          c.county     = <the selected county>)
    ORDER BY v.year

    Sorry to rain on your parade, but its not going to be quite that simple.
    Populating a second dropdown depending on the first one, has been discussed quite in depth on this forum, I suggest you do a search to look at older posts.
    Javascript code cannot call java/database code from an onclick event.
    The best it can do is trigger a form submission, which reloads the page
    running any java/sql code that displaying the page entails.
    So onlick event on the first dropdown triggers a form submit, which loads the page with the correct values in the second dropdown.
    con: requires a page request
    The other approach is to download ALL possible values to the jsp page, and have javascript handle the swapping of values.
    pro: no page refresh needed
    con: must have all data available on the page. javascript is a bit more complicated.
    Hope this helps,
    evnafets

Maybe you are looking for

  • How can I edit and save parts of songs (like a chorus).

    How can I edit and save parts of songs (like a chorus).

  • NCS reports based on AP groups

    Hello, I am wondering if it is possible to create reports in NCS and have them filtered according to AP Groups created on a WLC. I am wanting to generate reports based on the AP's in certain AP Groups. If it's not possible by using the WLC AP Groups,

  • An error during the installation of OS X !!

    During the installation of OS X maverick an error occurred pointing that my Macintosh disk is damaged and can't be repaired !! The installation is not being continued and I can't go back to my old version !! However The only available choices are dis

  • How to view all notificaitons in PO

    Hi All, I want to view all notifications(Requisitions and PO's) from my USER. How can i view all the notifications without accessing the other user access. Note: We are using the version 11.5.10.2 Can any one help me?? Regards, Kevin.

  • Adaptive RFC and Locking Objects from WD Java

    Hi, There are some pieces of information available on this subject but no coherent and easy to follow "manual". Also some questions remain. I'd rate this a very important, i.e. "business critical" problem. Therefore I would appreciate your help to ge