Help required understanding the purpose of having instance Init blocks

I want to know exactly what the purpose of having instance initialization blocks in Java. As in static init blocks, we can execute some commands before creating an instance of a class.
And also in instance init blocks, we are executing some commands which we can do in a constructor. So I’m little bit confused of the purpose of having this concept instance init blocks without writing it in the constructor itself.
Really appreciate if anyone can explain this ASAP as I am still a beginner who is studying for SCJP exam.
Thanks in advance.

The instance initialization blocks are always executed before the constructor code is executed. This may be used for some activity which is common to all constructors (in case constructors are overloaded).

Similar Messages

  • Can you help me understand the use of the word POSITION in TR and CFM?

    Hi,
    I am trying to have a view of typical BI reports in TR and TM/CFM so through my research I came to the following link:.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/08193c38f98e1ce10000000a11405a/frameset.htm
    My problem on this link and other postings on this site seem to be the same. Can you help me understand the use of the word POSITIONS in these context:
    1. Our client has asked for financial transaction reports in BW, such as position of Borrowings, Investments and Hedge Operations (TM data).
    2. I have a requirement on, some reports related to Money Market (Fixed Term Deposits, Deposits at Notice) something on FSCM-Treasury and Risk Manager. These reports will be similar to that of Loans, i.e. Position statement, flow statement, etc.
    3. The set of position values for a single position or a limited amount of positions can be reported by transactions TPM12 and TPM13 in R3.
    4. 0CFM_C10 (Financial Positions Cube)
    Do you have some simple report outputs to help clarify how the word POSITION is used in such environments?
    Thanks
    Edited by: AmandaBaah on Feb 15, 2010 4:39 PM

    If I future buy 10 shares in company at £1 per share - at the end of the day my potential value is £10
    The next day the shares drop tp £0.9 per share - I have a negative position - my shares are only worth £9
    I haven;t bought them yet - but I have a negative position - ie if things stayed as they are - I am going to realise (ie end up with)  a loss
    Now you can use this for loans and foreign exchange banks as well...

  • Need help for understanding the behaviour of these 2 queries....

    Hi,
    I need your help for understanding the behaviour of following two queries.
    The requirement is to repeat the values of the column in a table random no of times.
    Eg. A table xyz is like -
    create table xyz as
    select 'A' || rownum my_col
    from all_objects
    where rownum < 6;
    my_col
    A1
    A2
    A3
    A4
    A5
    I want to repeat each of these values (A1, A2,...A5) multiple times - randomly decide. I have written the following query..
    with x as (select my_col, trunc(dbms_random.value(1,6)) repeat from xyz),
    y as (select level lvl from dual connect by level < 6)
    select my_col, lvl
    from x, y
    where lvl <= repeat
    order by my_col, lvl
    It gives output like
    my_col lvl
    A1     1
    A1     3
    A1     5
    A2     1
    A2     3
    A2     5
    A3     1
    A3     3
    A3     5
    A4     1
    A4     3
    A4     5
    A5     1
    A5     3
    A5     5
    Here in the output, I am not getting rows like
    A1     2
    A1     4
    A2     2
    A2     4
    Also, it has generated the same set of records for all the values (A1, A2,...,A5).
    Now, if I store the randomly-decided value in the table like ---
    create table xyz as
    select 'A' || rownum my_col, trunc(dbms_random.value(1,6)) repeat
    from all_objects
    where rownum < 6;
    my_col repeat
    A1     4
    A2     1
    A3     5
    A4     2
    A5     2
    And then run the query,
    with x as (select my_col, repeat from xyz),
    y as (select level lvl from dual connect by level < 6)
    select my_col, lvl
    from x, y
    where lvl <= repeat
    order by my_col, lvl
    I will get the output, exactly what I want ---
    my_col ....lvl
    A1     1
    A1     2
    A1     3
    A1     4
    A2     1
    A3     1
    A3     2
    A3     3
    A3     4
    A3     5
    A4     1
    A4     2
    A5     1
    A5     2
    Why the first approach do not generate such output?
    How can I get such a result without storing the repeat values?

    If I've understood your requirement, the below will achieve it:
    SQL> create table test(test varchar2(10));
    Table created.
    SQL> insert into test values('&test');
    Enter value for test: bob
    old   1: insert into test values('&test')
    new   1: insert into test values('bob')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: terry
    old   1: insert into test values('&test')
    new   1: insert into test values('terry')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: steve
    old   1: insert into test values('&test')
    new   1: insert into test values('steve')
    1 row created.
    SQL> insert into test values('&test');
    Enter value for test: roger
    old   1: insert into test values('&test')
    new   1: insert into test values('roger')
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select lpad(test,(ceil(dbms_random.value*10))*length(test),test) from test;
    LPAD(TEST,(CEIL(DBMS_RANDOM.VALUE*10))*LENGTH(TEST),TEST)
    bobbobbobbobbobbobbobbobbobbob
    terryterry
    stevestevesteve
    rogerrogerrogerrogerrogerrogerrogerrogerrogerYou can alter the value of 10 in the SQL if you want the potential for a higher number of names.
    Andy

  • I have a 4 gen Time Caps. and a 2nd Gen Airport Extreme I would like to extend my TC network to use the Extreme for the purpose of having internet available to my TV box wired.  Is this possible and how to I get them to work together?

    I have a 4 gen Time Caps. and a 2nd Gen Airport Extreme I would like to extend my TC network to use the Extreme for the purpose of having internet available to my TV box wired.  Is this possible and how to I get them to work together?
    How can I get my Time Cap (TC 4 gen) to recognise my 2gen Airport Extreem (AE)
    Frank

    Thanks for the info, this really helps.
    Power up the AirPort Extreme for a few minutes, then hold in the reset button on the back of the Extreme for 10 seconds and release. Allow a full minute for the Extreme to restart to a slow, blinking amber light.
    It might be possible to use wireless to configure the Extreme, but I recommend using a wired connection. Temporarily, connect an Ethernet cable from your Mac to one of the LAN <-> ports on the Extreme.
    Click the AirPort icon at the top of the Mac's screen and wait a few seconds for a listing of New AirPort Base Station to appear. Just below that, click on  AirPort Extreme.
    The illustration below shows an AirPort Express. You will see AirPort Extreme on your screen.
    AirPort Setup will open up automatically and take a minute to analyze the network, then announce that the Extreme will be configured to extend the Time Capsule network.
    Enter a device name that you want to use for the Extreme and click Next
    Wait a minute while AirPort Setup configures things for you. When you see the message of Setup Complete, click Done.
    You can disconnect the Ethernet cable that you used for the set up now. Things should be working. The Extreme is providing additional wireless coverage the the Ethernet ports are enabled. You can connect to any port that you want since they all operate the same in this type of setup.

  • I need help in understanding the customization of Landscape in R/3.

    I need help in understanding the customization of Landscape in R/3. Setup of SAP Landscape from an SAP SD point of view. Being as SAP SD consultant what would be my role in customizing the Landscape server. Help needed. Thx

    Hi,
    In a standard SAP project implementation, the 3 standard transport procedures are:
    Development System (DEV) --> QA System (QAS) --> Production System (PRD)
    In the above structure, the Training Client (TRN) could be made from the copy of PRD (after when real-time master data has been available) or from QA system (where configuration has been tested in DEV client, and the master data is uploaded manually for training purposes)
    Sandbox (standalone): This can be refreshed with Golden Client to reflect the latest configuration performed to facilitate the development/testing purposes.
    -Development (DEV): Where all system configurations and development activities are carried out.
    -Quality Assurance (QAS): Where functional testing is carried out. The System Integration Testing (carried out by the -Development Team) and the User Acceptance Testing (carried out by XXX appointed personnel) is carried out in this server.
    -Training (TRN): End Users are trained on this server.
    -Production (PRD): After the System is commissioned all data entry and administrative functions will be carried out in this server.
    This is by far the standard landscape architecture that is adopted and practiced in most implementations.
    Hope the above helps.
    Thanks.

  • Please help to understand the Service parts planning,we r tring to do poc for project

    Hi
    Please help to understand the Service parts planning,we r tring to do poc for project
    1)How the sales history flow from cube to Interactive forecasting screen(like dp in apo there is no Planning area to store data and no load planning area from cube,so please let me know how it will load data?)
    2)How the Final demand will flow to DRP for further planning?
    3)What is the exact purpose of BOD?
    4)What is the leading indicator forecasting and the purpose?
    5)Where data will store in SPP (forecasting and other data like liveache in dp)?
    6)Product interchangeability and use?
    6)Can you please forward the process document to understand the flow as i am not able understand the help document
    Thanks for advance help
    Regards
    kkk

    Hi,
    Please check Service Part Supply Plan - Enterprise Services in SAP Advanced Planning and Optimization - SAP Library
    BR

  • Please help to understand the Service parts planning doubts/clarifications

    Please help to understand the Service parts planning,we r tring to do poc for project
    1)How the sales history flow from cube to Interactive forecasting screen(in spp,like dp in apo there is no Planning area to store data and no load planning area from cube,so please let me know how it will sales history load data?)
    2)Does Sales History of the child location will agregated to entry level ? if so like that we need to run statistical forecats at entry location?
    3)where we will create the from and To Product(eg:Maping Product A to Product B ) to do the Relignment /Phase in profile/Interchangebility
    4)What is the leading indicator forecasting and the purpose?
    5)Where data will store in SPP (forecasting and other data like liveache in dp)? Mpos and Planning area is not there in SPP?
    6)Can you please forward the process document to understand the flow as i am not able understand completely by the help document
    Thanks for advance help
    Regards
    KKK

    Hi,
    Please check Service Parts Planning - Enterprise Services in SAP Advanced Planning and Optimization - SAP Library
    BR

  • HT4847 Don't understand the purpose of icloud storage

    Hello,
    Maybe I'm alone on this one, but even after reading Apple's articles on iCloud and iCloud storage, I don't understand the purpose of it.  I am only using 23.5 of a 25 Go storage (all of it is backup of all my apps and files (not sure the movies and music is covered even though the iPad general setting info implies this since I'm in Europe) and yet, if I delete the app files from the iPad, I also delete them from the cloud.  So for instance, I want to update to the latest iOS and it says I'm short 312 Mo and need to delete stuff from the iPad. 
    If I understand correctly, the only way to do this safely is to make sure a duplicate is on my PC via iTunes. So then what do I need the iCloud extra storage for (for which I am paying)?  Is this like a SkyDrive or Dropbox or not???
    Please someone clear this up in simple, step-by-step type language.  I feel like I'm getting a round around when I read or take to Apple folks via email.  Thanks in advance!

    Movies, music and apps are not part of your back ups, they are all available already on Apples servers as part of the iTunes Store. Backups consist of settings, photos and other data which cannot be obtained from elsewhere.
    iCloud is not general online storage like Dropbox, in addition to back ups it keeps all your app data from apps such as contacts, calendars etc so it can be accessed by all your devices and keep them in sync. But in keeping with the mobile system structure the data is accessed through the app rather than a folder structure.

  • Help required understanding steps of Transfer Workflow:WS01000014

    Hi All,
    Please help me understand the steps of this workflow..i have already gone thru some explaination about this workflow from this [link|http://www.sapfans.com/forums/viewtopic.php?f=11&t=292192&start=0&st=0&sk=t&sd=a] but getting confused with few steps.
    Correct me if i am wrong ..the workflow is triggered when a  new position is created?(to which employee is going to be transffered?)
    In step1:check target postion..of who? and then what happens?
    step on user and role is confusing too
    there are two specify postion in two departments..what are the two postions for ? 1 fro employee and one for his new manager/hr admin?
    pls advice
    thanks in advance

    Hello,
    The workflow is triggered when an instance of object ORGCHEARM
    issues the event CREATED - ie there has been an organizational change.
    Step 1 is condition "Check Target Position" :
    ( Designation.Root <> 'P'     and
      Designation.Object Type <> ''     and
      Designation.Object ID   <>     00000000
    ) or
    ( Designation.Root = 'P'     and
      Designation.Object Type = 'S'     and
      Designation.Object ID   <>     00000000
    If true then continue, if false: Specify Agent.
    Specify Agent branches according to type of
    Agent Specification. The condition is:
    Designation.User Name <> ''
    In both cases task TS01000118 (Specify Position in New Department)
    is called. If the condition was true then it's called with as agent
    the contents of ORGCHEARM.ACROSSBORDERUSER; if not true then
    the role AC0000168 is used to determine the superior(s) of the
    "object type affected" and they are used as the agents (ie they receive the workitem).
    Hope this helps.
    regards,
    Rick Bakker
    Hanabi Technology

  • Error Posting IDOC: need help in understanding the following error

    Hi ALL
    Can you please, help me understand the following error encountered while the message was trying to post a IDOC.
    where SAP_050 is the RFC destination created to post IDOCs
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>FM NLS_GET_LANGU_CP_TAB: Could not determine code page with SAP_050 Operation successfully executed FM NLS_GET_LANGU_CP_TAB</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: FM NLS_GET_LANGU_CP_TAB: Could not determine code page with SAP_050 Operation successfully executed FM NLS_GET_LANGU_CP_TAB</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Your help is greatly appreciated.............Thank you!

    Hi Patrick,
      Check the authorizations assigned to the user which you used in the RFC destinations, If there is no enough authorizations then it is not possible to post the idocs.
    Also Refer this Note 747322
    Regards,
    Prakash

  • Need help in understanding the error ORA-01843: not a valid month - ECX_ACT

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

  • I just got a MBP Retina. At it's highest resolution, everything is tiny. The olny way to get things to a readable size is to lower the rez, but that defeats the purpose of having it. Am I missing something?

    I just got a MBP Retina. At it's highest resolution, everything is tiny. The only way to get things to a readable size is to lower the rez, but that defeats the purpose of having it. Am I missing something?

    It doesn't defeat the purpose to lower the resolution. When you choose the size you can read, the extra pixels are used to make the text and graphics more detailed, closer to the high print resolution humans have been accustomed to reading on paper for hundreds of years. That is the difference compared to the coarse screen resolution of a conventional (non-Retina) screen.

  • What is the purpose of having 'oracle' user with umask 022?

    Hello,
    What is the purpose with having the 'oracle' profile with a umask of 022? Isn't that a security risk having files created by 'oracle' with 755 permission? I mean why let others have the capability to read and execute on files that 'oracle' writes. Thank you.
    Paul

    Hi;
    You can set it as you wish. But from note:
    The umask utility sets the file mode creation mask of the current shell execution environment to the value specified by the mask operand. This mask affects the initial value of the file permission bits of subsequently created files. If umask is called in a subshell or separate utility execution environment, such as one of the following:
    +(umask 002)+
    nohup umask ...
    find . -exec umask ...
    it does not affect the file mode creation mask of the caller's environment. For this reason, the /usr/bin/umask utility cannot be used to change the umask in an ongoing session. Its usefulness is limited to checking the caller's umask. To change the umask of an ongoing session you must use one of the shell builtins.
    If the mask operand is not specified, the umask utility writes the value of the invoking process's file mode creation mask to standard output.
    The most common umask values are 022, 027, and 077.  A umask value of 022 lets  the owner both read and write all newly created files, but everybody else can
    only read them:
    Oracle recommended(also its a prereq for installation) to set umask 022 due to do upper explanation.
    http://docs.oracle.com/cd/E19253-01/816-5165/umask-1/index.html
    Regard
    Helios
    Source:
    +0666 Default file creation mode+
    +022 resultant mode+
    +0644 resultant mode+
    On many UNIX systems, the default umask is 022.  This is inherited from the  init process, as all processes are descendants of init.

  • Anyone understand the purpose of Proxy render/output format?

    So I've done a couple of projects with X now and am fairly happy with the proxy workflow:
    1) Ingest, creating proxies, but no optimized - render format set to ProRes regular
    2) Edit in proxy
    3) In preferences, switch back to "Use original or optimized"
    4) Tweak edit
    5) Render and export
    However, I'm still not understanding the thinking behind the render/output format (full-resolution proxy) when you are editing in proxy. It seems to me that it SHOULD be:
    EITHER: When you're editing proxy, if you render/export, FCPX renders/outputs in proxy using the same low resolution as your proxy files. This would be great for early, quick samples for clients. No need to spend forever rendering full-res ProRes regular, or the pointless upsizing of pre-rendered lo-res proxies.
    OR: Even while you're editing from proxies, background rendering is done in your full-quality format (i.e. 1080 ProRes regular). This would save you from re-rendering when you switch back over to original/optimized.
    Ideally, there'd be a toggle to choose which of these you want. Even without a toggle, Apple should pick one of these it seems. The way it is now seems useless.
    SUMMARY:
    While editing in proxy, render/output should be either:
    1) 720x540 ProRes Proxy
    OR
    2) 1920x1080 ProRes Regular
    BUT NOT
    3)1920x1080 ProRes Proxy
    I was going to send an enhancement request about it, but figured I'd first see if anybody knows of a useful reason for it instead being this third, awkward format.
    Thoughts?

    I had hoped the summary would clear up the question. I guess not. Let's try this again:
    QUESTION - Would other people like the output, when in proxy mode, to be a low-res ProRes Proxy file - the same size as the files that are created when you tell FCPX to make proxies of your original files?
    DETAILS
    - When you create proxies of your original files, they are a low-resolution of "something"x540 (in my case 720x540)
    - If you output while in proxy, you get a proxy output file at 1920x1080 - this is 5.3 times as many pixels to render as 720x540.
    - Assuming a linear relationship between number of pixels and render time, this means it would take over 5 times as long to render the current form of proxy output, as compared to what I'm asking for.
    - I want a quickly-rendered format (like 720x540 Proxy) so I can quickly render/output, change things, re-render/output, sending multiple sample files to the client.
    - Of course, the ability to mark in/out on the timeline and export just that section is also important here, but that's another post and has already been discussed.
    - For further details, see my original post
    As for my workflow, I don't need to work with either/or. I work in proxy (which, if you're doing more than straight cuts, allows better playback before rendering, no matter what computer you're using) until I'm ready for the final tweaks to graphics or the edit that actually rely on fine detail, and want to output in 1080 Prores regular, at which point I change the preference back to original/optimized, like I said right at the start of the first post. No mind reading necessary. I then tweak, render and output. I'm not sure you're understanding the purpose of a proxy workflow.

  • HT204476 is there anyway to get rid of the old iPhoto Library? It defeats the purpose of having a new software if I have to keep the remnants of the older one.

    is there anyway to get rid of the old iPhoto Library? It defeats the purpose of having a new software if I have to keep the remnants of the older one.

    dubthedankest wrote:
    Where are the masters actually stored upon conversion from Aperture to Photos? Photos?
    The master files are stored on your drive, but they are not actually stored "in" any folder. Folders are really just special files that store various bits of information about the files associated with that folder, including links to where they actually are stored. That's why you can "move" a file from one folder to another very quickly: all that you really are doing is moving the link & other info from one folder to the other folder, while the file itself stays where it was.
    Because of this, it is possible for more than one folder to link to the same file -- in the Finder it looks just like there are two copies of the file, one in each folder, but there really is just the one copy. From the description in the Photos saves disk space by sharing images with your iPhoto or Aperture libraries doc, it looks like that's what happens when you import your iPhoto library into Photos -- both the old iPhoto Library "file" (which actually is a set of folders & subfolders of files) & the Photos Library (also consisting of folders & files) contain links to the master files, but like the Apple doc says, there really is just one set of master files being stored.
    This is very similar to the way Time Machine backups look like they have multiple copies of the same unique file, one in each time-stamped backup folder, but there really is only one copy on the Time Machine drive. My guess is Apple is using hard links for this, which means the actual master files will not be deleted from the file system as long as at least one link remains to each of them.
    So you should be safe in deleting the old iPhotos Library once you are absolutely sure you don't need it, but to be sure, if it was me I would make a backup just in case, or better yet just leave it alone.

Maybe you are looking for

  • How can I make sure my data add on doesn't automatically renew?

    I bought the 1.99 100 MB of data, don't want this to anutorenew, how can i stop it from doing that?

  • How to Spawn a concurrent program from another Concurrent Program

    Hi, I need to write a concurrent program with PL/sql procedure. Inside this procedure, for a cursor data, for each record I need to spawn another concurrent program. How can I do this. Should I call a concurrent program using fnd_request.submit_reque

  • MAIN_SHDRUN/ACT_UPG error

    Hello Expert,       we are upgrade our develop server from ERP 6.0 to ERP 6.0 EHP 7. we are use SUM tool SUM10SP09 in step 5.5 preprocessing - MAIN_SHDRUN/ACT_UPG. we are receiving the following error:- Checks after phase MAIN_SHDRUN/ACT_UPG were neg

  • How to delete a substitution

    Hi All, I have done a simple VO extension and I am ready to deply it to our development environment. I have got the substitution file and have specified the relevant files but before I upload it I want to know how to back it out (Incase their is an i

  • Multi Master Replication - Only works for some tables?

    I have a multi master replication between a 9i and an 816 database. All the tables are in the same tablespace and have the same owner. The replication user has full privs on all the tables. When setting up the replication some tables create properly,