Basic ThisDemo flow of Control Understanding

Ok ive got two classes, the first being television.java;
public class Television
public int channel;
public int volume;
public Television()
this(4,10);
System.out.println("Inside no-arg constructor");
public Television(int c)
this(c, 10);
System.out.println("Inside one-arg constructor");
public Television(int c, int v)
System.out.println("Inside two-arg constructor");
channel = c;
volume = v;
the second is ThisDemo.java;
public class ThisDemo
public static void main(String [] args)
System.out.println("Instantiating first television");
Television t1 = new Television();
System.out.println(t1.volume + " " + t1.channel);
int channel = 206;
System.out.println("Instantiating second television");
Television t2 = new Television(channel);
System.out.println(t2.volume + " " + t2.channel);
int volume = 7;
System.out.println("Instantiating third television");
Television t3 = new Television(channel, volume);
System.out.println(t3.volume + " " + t3.channel);
can someone explain to me why the first three lines of output are:
Instantiating first television
Inside two-arg constructor
Inside no-arg constructor
10 4
is it because withing the Television() constructor it says, this(4,10) so it jumps from the print out for the two arg constructor then back to the no-arg constructor. I would really like to get my head around this. Thanks. Richard

is it because withing the Television() constructor it says, this(4,10) so it jumps
from the print out for the two arg constructor then back to the no-arg
constructor.Yes.
Remember you call this(4, 10) before you print the fact that you are in the
no argument constructor. (And, of course, you have to do this.)

Similar Messages

  • Basic process flow of WM

    Hi,
    I am a MM consultant and have to start work in WM. Need to have some guidance for basic steps and its settings in Configuration and Master Data for Putaway and Picking Strategies.
    Can anyone provide some guidance that how Putaway and Picking Strategies work in WM?
    Thanks in advance

    Hi,
    The basic process flow of WM is: There are two processes1.Putaway : placing the goods in WM 2.Picking the goods( issuing the gods from WM
    Steps for putaway:
    1.Create inbound delivery with or without reference to Purchase order9 VL31N)
    2.Create TR (TR will get created after GR in IM automatically)
    3.Create TO (with or with out reference) Here source destination will be there
    4.Put away the material
    5.Confirm the TO
    Steps for Picking:
    1.Create outbound delivery with referece to sales orderor with out reference(VL01N)
    2.Create TR
    3.Create TO with reference  or without reference to TR
    4.Pick the materilaL
    5.cONFIRM TO.
    There are different release stratagies for put away and picking. You have to learn the Organizational lavels of WM,Different functionalities of WM, Master data for WM. To gain good knowledge of WM please read SCM630. I hope this will give more clarity and resolve your issue.Thanking you.

  • Basic process flow for bank account assignment to customers

    Hi ,
    please help,
    I want to know the basic process flow for customer bank account creation and assignment process. I.e I had pass the customer details ,credit card information throw the oe_order_pub.proces_order() API .after this process ,how the bank account creation and updation process works?.
    Give me the steps and API name for bank account creation.
    Thanks
    prabu

    hi mnr,
    this is my manual process flow.
    BEGIN
    l_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC;
    l_header_rec.header_id := '100192';
    l_header_rec.credit_card_holder_name := 'myname';
    l_header_rec.credit_card_number := 'xxxxxxxxxxxxxxxx1111';
    l_header_rec.credit_card_expiration_date := '1-Jan-28';
    l_header_rec.credit_card_code := 'VISA';
    l_header_rec.payment_type_code := 'CREDIT_CARD';
    l_header_rec.sold_to_org_id := '17118';
    l_header_rec.credit_card_approval_code := '34545656676';
    l_header_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
    OE_ORDER_PUB.process_order (p_api_version_number => 1.0
    , p_init_msg_list => fnd_api.g_false
    , p_return_values => fnd_api.g_false
    , p_action_commit => fnd_api.g_false
    , x_return_status => l_return_status
    , x_msg_count => l_msg_count
    , x_msg_data => l_msg_data
    , p_header_rec => l_header_rec
    , p_line_tbl => l_line_tbl
    , p_action_request_tbl => l_action_request_tbl
    x_header_rec => l_header_rec
    , x_header_val_rec => x_header_val_rec
    , x_Header_Adj_tbl => x_Header_Adj_tbl
    , x_Header_Adj_val_tbl => x_Header_Adj_val_tbl
    , x_Header_price_Att_tbl => x_Header_price_Att_tbl
    , x_Header_Adj_Att_tbl => x_Header_Adj_Att_tbl
    , x_Header_Adj_Assoc_tbl => x_Header_Adj_Assoc_tb
    ............etc );
    after this process,i found duplicate customer bank account records in bank account screen .if am uses same values in two process. And it will never updates the exiting bank account . it is the standard oracle process or my mistake.
    Thanks
    prabu
    Edited by: 861876 on Jun 21, 2011 11:06 PM

  • Basic process flow for WM and putaway process

    Hi all,
    Can someone explain me the basic process flow in decentralised WM system???
    Also what do the foll terms mean in aWM process:
    1.Putaway process
    2.Putaway label
    3.Selling Unit label
    4.MIC #

    In decentralized Warehouse, normally Inventory is managed in in a seprate application. SAP System  will coordinate with it through IDOCS. For example, Sales Order and Outbound Delivery created in SAP Systems. Delivery is communicated to Decentralized Warehouse using an IDOC. Then Picking happend in the external system.
    1.Putaway process:  The process of placing the stocks in the appropriate Bins in a Warehouse. It starts after GR is done for a  Inbound Order
    2.Putaway label: Its a label that will beprinted with some basic information like destination bins
    3.Selling Unit label: Again label
    4.MIC # :  Management of Internal Controls

  • KSII, Can FI postings flow into Controlling actual cost splitting.

    Can FI postings flow into Controlling actual cost splitting and actual price calculation. I am trying post FI documents(FB50,FB60,FB01) with cost elements, activity type, quantity and cost center combination. I am able to post a document and then I do all the KSS2, in KSII is not able to show me that posting. I need to know, is it possible to move from FI to CO in tcode KSII , if yes let me know i am missing something. and i am getting an error message
    Message no. KP250
    Diagnosis
    The plan or actual activity for cost center , activity type  is 0. However, costs were planned or posted in period(s) 2.

    Hi,
    As you know, the system splits all activity-independent costs to the activities according to the following three step logic:
    -split based on target costs
    -if not possible split by splitting structure
    -in the last step if the above two were not possible split by equivalence numbers set in transaction KP26
    In your case, if there is no actual quantity for the cost center, then the system will split by equivalence number. Therefore please make sure, that the cost center has actual quantity.
    Further information is also provided in note 772794.
    regards
    Waman

  • Basic Condition in copying control

    Hi All,
    anybody can you tell me what is basic rule in copying control.I know if copying from one doc to another certail thing are not copied.but how can i know.like if i am copying from invoice to return order assassable value is not copied but i have maintain pricing type D in copying control,what is the reason behind this that certain thing are not copied.
    regards
    ajit

    Hi,
    If you maintain D in the PRICING TYPE in COPY CONTROLS then definitley it should copy from the SOURCE to TARGET.
    Please check in the Return order ->ITEM CONDITIONS->ANALYSIS and check the Condition type. It will give information on why it was not copied.
    regards,
    santosh

  • Help required in understanding the flow of control in working with EJB 3.0

    *1. Can anyone help me in understanding the flow after getting an object of InitialContext in using Stateless/Stateful in EJB 3.0 from client i.e. what we are getting in the step Object ref=jndiContext.lookup("CalculateBean/Remote) .*
    *2. What is the use of INITIAL_CONTEXT_FACTORY*
    *3. PROVIDER_URL*
    *4. Java.naimg.factory.url.pkgs*
    *5. why org.jboss.naming and org.jnp.interfaces separated by semi colon.*
    *6. Why we dont require INITIAL_CONTEXT_FACTORY, PROVIDER_URL and Java.naming.factory.url.pkgs if the client is a web client.*
    Properties p=new Properties();
              p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
              p.put(Context.PROVIDER_URL,"jnp://localhost:1099");
              p.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
              Context jndiContext = new InitialContext(p);
         Object ref = jndiContext.lookup("CalculateBean/Remote");
    Calculate c = (Calculate)ref;
    int sum=c.add(3,4);
    System.out.println(sum);
    Thanx in advance........

    Annotations can also be processed at run time using the core reflection API (java.lang.Class & java.lang.reflect.*), so you might want to explore down that path. I have no idea how JBoss actually does it, but annotation processing at build time and core reflection at runtime are the two most obvious possibilities.
    Bruce

  • Flow of control in SAP system?

    Hi,
    Suppose an organization(say A) is implemented SCM system then explain me how the data flow from enterprise portal of A's supplier to the system of A....   I m asking that how BI and ECC are involved and how controls are switch over from one system to another.  can anyone explain with an example...
    simply after implementing SAP in an organization how they use that system and wat is the interprocess going on... i dont want the architecture... please some real time examples.... it ll help me to understand the concept better... plz...

    Hi Ravi,
    classes in package com.sap.mbs.mam.bo (Mam001) represent DB access layer.
    They are generated by a special tool, called BOGenerator, from a file meRepMeta.xml which is exported from SynBo created on the middleware.
    There are two types of classes:
    - Mam001 -> provides get/set methods in a table (in this case order header)
    - Mam001Manager -> provides insert/update/delete methods for all tables in Order SyncBo.
    So if for your custom enhancement you need to map a field which is not mapped in a standard SyncBo, to access this field in the front-end you have two options, either regenerated these classes and a new get/set will be created, or access it via general method getField(String fieldName).
    You will see that classes in this package are commonly extended in a standard MAM itself. Most commonly it is done when getField method has to be overwritten to return something which is not in the DB, for example icon.
    Hope this helps,
    Larissa

  • Flow of control in SAP implemented Organization?

    Suppose an organization(say A) is implemented SCM system then explain me how the data flow from enterprise portal of A's supplier to the system of A.... I m asking that how BI and ECC are involved and how controls are switch over from one system to another. can anyone explain with an example...
    simply after implementing SAP in an organization how they use that system and wat is the inter process between SCM, ECC, and BI is going on... i dont want the architecture... please some real time examples.... it ll help me to understand the concept better...

    Hi Ravi,
    classes in package com.sap.mbs.mam.bo (Mam001) represent DB access layer.
    They are generated by a special tool, called BOGenerator, from a file meRepMeta.xml which is exported from SynBo created on the middleware.
    There are two types of classes:
    - Mam001 -> provides get/set methods in a table (in this case order header)
    - Mam001Manager -> provides insert/update/delete methods for all tables in Order SyncBo.
    So if for your custom enhancement you need to map a field which is not mapped in a standard SyncBo, to access this field in the front-end you have two options, either regenerated these classes and a new get/set will be created, or access it via general method getField(String fieldName).
    You will see that classes in this package are commonly extended in a standard MAM itself. Most commonly it is done when getField method has to be overwritten to return something which is not in the DB, for example icon.
    Hope this helps,
    Larissa

  • Flow of control in smartforms while continuation of text

    hi, I am working on smartforms. on the first page there is a main table in the main window. the main table's header has 4 row lines. the control is first printing the 3rd row line as the conditions are not met for the first 2 row lines. While printing the 3rd rowline the main window area is complete so the next page is started and there, above the rest portion of the 3rd row line I am finding the 4th rowline.
    can anyone please explain me the control flow in this type of case.
    Thanks in advance

    Hello Sangram,
    Did you created the Next page and assign it to first page ?
    Normally if internal table is having the data of suppose 4 line item and if the 3 line item is printed in 1st page then accordingly next page is trigger printing the remaining data.
    If you have done the below steps then please ignore that :
    1. Create the Next page same as First page .
    2 In General Attribute of First page Select the Next Page As your "NEXT PAGE.
    Let me know if it doesn't work.
    Thanks
    Romit Raina

  • Internal order flow in controlling

    Hi all,
    Can please help to know the flow of the internal order
    as well as  cost center .
    i want to know the relation between the tables in  controlling, so
    If possible please provide me the ppt's , screen shorts, etc.
    Thanks and regards
    Ravi

    Hi,
    Please check internal order released or not.
    Regards,
    Ranjeet

  • Basic Design Flow Strategies Involving Modes and File Close

    I am taking over a pre-exsisting Labview  (ver 7.1) project which was gone through probably never rigidly structures from the get go. I have a two queastions queastions.
    1.) Queastion1:  I'm trying to introduce more structure in the code as per written requirments we have involving software flow in terms of  state transition between modes. Depending on what mode you're in specific functionalty or behaviors are allowed. None of this strict controlhas been implemented yet. The basic structure of the current program consist of Tack Seqeunce Structure as the highest outter level followed by a nested while loop and a mix bag of cases, while llops and stack sequence within the inner nested while loop.
    My   

    I am taking over a pre-exsisting Labview  (ver 7.1) project which was gone through probably never rigidly structures from the get go. I have a two queastions queastions.
    1.) Queastion1:  I'm trying to introduce more structure in the code as per written requirments involving software flow in terms of  state transition between modes. There are a total of six (6) modes defined and depending on what mode you're in specific functionalty or behaviors are allowed. None of this strict controlhas been implemented yet. The basic structure of the current program consist of Tack Seqeunce Structure as the highest outter level followed by a nested while loop and a mix bag of cases, while llops and stack sequence within the inner nested while loop.
    My objective is to at the launch of the program initilize some variable or data object representing the current mode state and resigned the this data object as the modes changes as a way of tracking the current mode. I also plan to use this mode state to enable, disable or trigger other functions within the program. What is the best data type or mechanism to use? I was thinking about using some sort of enum object.     
    2.) Queastion 2:
    We have a Close File function at the outter while loop. We are able to close file after hitting a button but not able to read file with another utility application untill we actually exit the Labview program.  We can see the number of bytes being updated in the file listing in Windows XP but Labview not releasing file until we exit.
              a.) How do fix this?  

  • How to stop/start SAP XI Message flow in controlled way?

    Hi All,
    I am facing a scenario where for maintenance activity I need to stop all message flow in XI, system should be up and running but no message should processed by XI. I also don't want to shut down system.
    Is there any way by which I can stop message coming to XI?
    I don't want to deactivate communication channel..
    Regards,
    Gourav

    Hi,
    maybe (just an idea) you can try to deregister all queues?
    raport : RSXMB_REGISTER_QUEUES
    then all the queues should stop but I haven't checked it
    so you'd have to do some tests and find out if this
    does not have any other negative impact of some other
    XI processes
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Converting from Rocky Mountain Basic to C to control a Vector Network Analyzer

    I am trying to convert an extremely old program written in Rocky Mountain Basic to C (Visual Studio.net) using the GPIB controller, and have run into some problems. While calibrating I cannot get the program to wait for the ibwait command (leading to the program prompting the user to change ports before it is done with the first). What mask should I use in the ibwait command (if that is the correct command) to get the program to wait until the calibration is completed? I've tried 8 and 13, and neither work. Am I completely off base?
    Thanks
    Andy Kass
    Colorado School of Mines

    Hello Andy,
    I am not exactly sure what signifies the end of the calibration. In any case, the best thing for you to do is to run NI-Spy in the background when you are running your Rocky Mountain Basic program to see what commands are executed with what parameters. Do the same with your C code. If both programs are the same, then the spy captures should also look the same.
    NI Spy Tutorial
    These two example programs may be of use to you when analyzing your spy captures.
    Compare the Differences Between Two NI Spy Captures *requires MS Visual Studio* *Note: Use a simple compare*
    Convert an NI Spy Capture into a Spreadsheet File
    *helpful for reformatting spy capture for easier printing*
    http://zone.ni.com/devzone/devzone.nsf/webcategories/BFEA3A69F40A9F8C862569FD006FFCF6?opendocument&node=DZ59203_US

  • I have programmed a visual basic application using activex controls. WHen I run this application through internet, it appears a message box indicating that the measurement studio is a demo, but I have the correct license. What can I do?

    I run the application in a computer without measurement studio because my application is stored in a web server and I access to the application downloading it from a web page of that server.

    Have you included the lpk file with your control? I've attached the tool you'll need and here is a nice link that goes thru it step by step.
    Hope this helps
    Bilal Durrani
    Bilal Durrani
    NI
    Attachments:
    lpk.zip ‏74 KB

Maybe you are looking for