Implicit and explicit Type conversion using Type object in heap

Hi,
I am surprised how Implicit and explicit Type conversion works using Type object in heap. for example when implicit type conversion occur what pointer it returns to object and similarly with explicit type conversion.

Hello,
>> I am surprised how Implicit and explicit Type conversion works using Type object in heap.
For Implicit conversions: Typical examples are conversions from smaller to larger integral types, and conversions from derived classes to base classes. For the first one, the reference would be different which means it would return a different pointer to
a new object. For the reference type, it actually points to the same memory location, you could use the object.ReferenceEquals() to check it.
For Explicit conversions (casts):Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class. For first one, it would perform the same with implicit conversions.
While for the conversion of conversion of a base-class instance to a derived class, actually, there's no built-in way to do this conversion.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • What is the real time use of implicit and explicit cursors in pl/sql

    what is the real time use of implicit and explicit cursors in pl/sql.............please tell me

    You can check the following link ->
    http://www.smart-soft.co.uk/Oracle/oracle-plsql-tutorial-part5.htm
    But, i've a question ->
    Are you student?
    Regards.
    Satyaki De.

  • Difference between Implicit and Explicit Cursors

    Hi All,
    Can you just tell me what is the difference between implicit and explicit cursor?
    Thanks,
    Padma

    Hi ,
    Implicit Cursor means ,the cursors which are defined impplicitly.Here we use curosr variables as "SQL%found,sql%not found,sql%is open.."
    but explicit cursors defined by us like if u create a cursor C1 then
    c1%found,c1% not found ,c1%open
    Thank you.

  • How a procedure is compiled in oracle ? (implicit and explicit compilation)

    how a procedure is compiled in oracle ? (implicit and explicit compilation)

    When you create a proceudre oracle automatically compile and stored it. Use the following syntax to compile a procedure
    ALTER PROCEDURE hr.remove_emp COMPILE;
    Thanks

  • What does "Implicit" and "Explicit" means????

    -- after reading various Java books, articles, magazines, forums .... etc...
    These two words: "Implicit" and "explicit" always appear on every text ...
    -- Does implicit means "directly" and explicit means "indirectly"?
    thanks

    -- after reading various Java books, articles,
    magazines, forums .... etc...
    These two words: "Implicit" and "explicit" always
    ways appear on every text ...
    -- Does implicit means "directly" and explicit
    licit means "indirectly"?
    thanks"implicit" means that something is executed that is not written in your code
    "explicit" means that whatever is executed specifically exists in the code.
    For instance: "a base class constructor implicitly calls super() if you don't explicitly call super yourself."
    That means even though it is not written in the code, the line:
    super();
    will be executed unless you explictily include a call to super() yourself, such as:
    super(10, 14.6, "some text");

  • H2 devide implicit and explicit created indexes by dictionary views?

    For migrating amounts of data it is useful to drop and recreate indexes and referencing constaints. A implicit created index by defining a primary/unique key constraint will be dropped implicitly by dropping the before mentioned constraint. Creating such a constraint after creating an equivalent index with the constraint name will result in an other behaviour. The explicit created index will not be dropped by dropping the referencing primary/unique key constraint.
    So far so good and well known. The question is: Which dictionary view columns will show me the difference between implicit and explict created indexes if I try to dynamically drop and recreate indexes and unique / primary key constraints?

    Oracle Version is always helpful in answering questions, but for 9i you can find the system generated by:
    dba_indexes.generated = 'Y'
    or
    'SYS_' naming convention for system generated indexes
    or
    dba_constraints.constraint_name = dba_constraints.index_name
    Hope this helps - JTommaney

  • Difference between Implicit and Explicit Commit

    Hi All ,
    Can some one pls let me know the difference between  Implicit commit and Explicit Commit .
    Thanks in Advance..

    >
    Kalyan wrote:
    > Hi,
    >
    > An explicit commit happens when we execute an SQL "commit" command.
    >
    > Implicit commits occur without running a commit command and occur only when certain SQL (DDL) statements are executed
    >
    > (Ie, INSERT,UPDATE OR DELETE Statements)
    > >
    > Hope this is clear & Helpful Short and Simple.
    >
    > Thanks
    > Kalyan
    Highlighted bit is incorrect.

  • Implicit and Explicit Enhancement

    Hi Gurus ,
    Can anyone please let  me know about what is  implicit enhancement and explicit enhancement.Steps involved in the same .
    Thanks ...
    ashok...

    Hi
    Implicit enhancement points are basically points within ABAP code where an enhancement point is implied, and in which case can be created. Examples of implicit enhancement points are at the beginning and end of FORM’s, at the end of a program, include or function module etc. Below is a step by step demonstration of how to create and implicit enhancement point.
    Explicit enhancement points are basically hooks already coded into the program by SAP at various points of the code. See program RIAUFMVK for examples of these! These are very easy to implement simply go into enhancement mode of SE80 and right click on the enhancement point where you want to add your code and choose ‘Enhancement Implementation->Create’ Give it a name, description and assign it to a change request (should not be a Z package) and then simply add the code as normal
    check the help
    http://help.sap.com/saphelp_nw70/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Regards
    anji

  • How to add a UDF with picture data type by using metadata object?

    Hi guys,
    does anybody have a clue on how to code user fields metadata object (via VB6) in order to add a picture type field? I can't find the enum number for this data type in the DI help file.
    Best Regards,
    Oki

    Hi,
    The field type should be BoFieldTypes.db_Alpha , and the subtype BoFldSubTypes.st_Image .
    And it is in the DI documentation (look at the SubType property).
    Regards,
    Ibai Peñ

  • Ref Cursor over Implicit and explicit cursors

    Hi,
    In my company when writing PL/SQL procedure, everyone uses "Ref Cursor",
    But the article below, says Implicit is best , then Explicit and finally Ref Cursor..
    [http://www.oracle-base.com/forums/viewtopic.php?f=2&t=10720]
    I am bit confused by this, can any one help me to understand this?
    Thanks

    SeshuGiri wrote:
    In my company when writing PL/SQL procedure, everyone uses "Ref Cursor",
    But the article below, says Implicit is best , then Explicit and finally Ref Cursor..
    [http://www.oracle-base.com/forums/viewtopic.php?f=2&t=10720]
    I am bit confused by this, can any one help me to understand this?There is performance and there is performance...
    To explain. There is only a single type of cursor in Oracle - that is the cursor that is parsed and compiled by the SQL engine and stored in the database's shared pool. The "+client+" is then given a handle (called a SQL Statement Handle in many APIs) that it can use to reference that cursor in the SQL engine.
    The performance of this cursor is not determined by the client. It is determined by the execution plan and how much executing that cursor cost ito server resources.
    The client can be Java, Visual Basic, .Net - or a PL/SQL program. This client language (a client of SQL), has its own structures in dealing with that cursor handle received from the SQL engine.
    It can hide it from the developer all together - so that he/she does not even see that there is a statement handle. This is what implicit cursors are in PL/SQL.
    It can allow the developer to manually define the cursor structure - this is what explicit cursors, ref cursors, and DBMS_SQL cursors are in PL/SQL.
    Each of these client cursor structures provides the programmer with a different set of features to deal with SQL cursor. Explicit cursor constructs in PL/SQL do not allow for the use of dynamic SQL. Ref cursors and DBMS_SQL cursors do. Ref cursors do not allow the programmer to determine, at run-time, the structure of the SQL projection of the cursor. DBMS_SQL cursors do.
    Only ref cursors can be created in PL/SQL and then be handed over to another client (e.g. Java/VB) for processing. Etc.
    So each of the client structures/interfaces provides you with a different feature set for SQL cursors.
    Choosing implicit cursors for example does not make the SQL cursor go faster. The SQL engine does not know and does not care, what client construct you are using to deal with the SQL cursor handle it gave you. It does not matter. It does not impact its SQL cursor performance.
    But on the client side, it can matter - as your code in dealing with that SQL cursor determines how fast your interaction with that SQL cursor is. How many context switches you make. How effectively you use and re-use the SQL (e.g. hard parsing vs soft parsing vs re-using the same cursor handle). Etc.
    Is there any single client cursor construct that is better? No.
    That is an ignorant view. The client language provides a toolbox, where each tool has a specific application. The knowledgeable developer will use the right tool for the job. The idiot developer will select one tool and use it as The Hammer to "solve" all the problems.

  • Difference between implicit and explicit enhancement points

    Hi Folks,
    I had learned many documents to findout the difference between explicit and implicit enhancement point.I got the theoritical knowledge on that but losing on the practical side..
    Can anybody help me out with one real time scenario where the explicit enhancement points have been implemented and the step by step procedure to implement it..
    Hoping for the positive response from you..
    Regards,
    Rohan.

    Hi Rohan,
    In implicit they are available at the beginning of subroutines defined in the standard reports.
    Edit-> Enhancement operations->show implicit enhancement options.
    This will highlight all the implicit enhancements in the report.
    In Explicit enhancement we have two different types of enhancements -
    Enhancement point and Enhancement section.
    Enhancement point - SAP has some standard functionality defined for a report , but it may be required that you'll need to add your own code. In this case the code that you'll add will be executed along with the standard code.
    Enhancement section - SAP has its standard functionality defines but it may not suit your requirement, in that case you may need to add your code and you'll need that code to be executed only. By this method the existing code is automatically commented and a copy of the same code is available to edit.
    After executing the report only your code will be executed and the standard code will be bypassed.
    For Practicle implementation, follow this link.
    Link : [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc]
    i hope it will give you some clear picture....
    Thanks.
    Anurag

  • Implicit and explicit?

    Hi:
    What is meant when a parameter or a cast etc. is referred as implicit?
    What is meant when a parameter or a cast etc. is referred as explicit?
    Thanks.

    implicit: Implied or understood though not directly expressed.
    For instance:
    Integer i = new Integer(42);
    Object obj = i; // Implicit cast from Integer to Object
    explicit: Fully and clearly expressed; leaving nothing implied.
    For instance:
    Object obj = new Integer(42);
    Integer i = (Integer)obj; // Explicit cast from Object to Integer

  • Implicit and explicit cursors

    i want to know when to it is recommended to use the implicit cursors (for rec in….) and when it is recommended to use explicit cursors(open cursors….)

    As Brett said, both methods require an explicit cursor definition. What is implicit in the FOR cursor loop is the opening and closing of the cursor. If you use a cursor FETCH loop, you need to code that explicitly yourself.
    My recommendation is to use the cursor FETCH loop and code those two additional OPEN CURSOR and CLOSE CURSOR statements. Reason: a cursor fetch loop allows for proper bulk processing code to be used. It does not rely on the implicit bulk fetching (of 10 rows per time) of a FOR cursor loop - which btw is only available in 10G.
    A FOR cursor loop does not scale. You cannot make the bulk fetching larger. Or smaller. You cannot do bulk updates or inserts in the loop.
    So I do not care what the experts think and say, for me the answer is clear cut. You want to write scalable and performant code? You will use a cursor fetch loop. Not a for cursor loop.

  • Implicit and explicit final

    hey guys...
    the specifictaion says when you define a class final, all methods are implicity final as well and they may be inlined. that's cool but why does the compiler explicit store the information into the class file that a method is final when the class is already defined as final..ok sounds complicated.. here an example :
    public final class Test {
    public void test() {}
    }here the method is implicit final.. and in the class file it is stored as specified.
    but why does the class contain the unnecessary information (?!) that the method is final when defined as such.. i mean it is already implicity final! example:
    public final class Test {
    public final void test() {}

    hmm.. i was hoping someone else would throw out some input, but I can only guess that like I said before, it was an issue that was either not considered, or something that was considered to be an unnecessary step for the compiler.
    I don't have a disassembler on hand to do any complex tests, but just out of curiosity, I ran a very simple one. I created a class with a whole lot of methods leaving the final as an implicit modifier and compiled. Then changed them all the be explicitly declared as final and compiled. The byte size of the output was identical, regardless of how many methods I added. I don't know that this is necessarily significant, but certainly raises some questions.

  • Insert without commit (implicit and explicit) stores data.

    Hi all:
    I have this piece of code:
    REPORT  ztest.
    DATA: wa_zsic_abonos_chk TYPE zsic_abonos_chk. "Is a transparent table
    START-OF-SELECTION.
       wa_zsic_abonos_chk-bukrs = 'MU01'.
       wa_zsic_abonos_chk-belnr = '99999'.
       wa_zsic_abonos_chk-gjahr = '2008'.
      INSERT into zsic_abonos_chk values wa_zsic_abonos_chk.
      IF sy-subrc <> 0.
        WRITE:/ 'register NOT inserted'.
      ELSE
        WRITE:/ 'register inserted'.
      ENDIF.
      SELECT SINGLE *
        INTO   wa_zsic_abonos_chk
      FROM zsic_abonos_chk
      WHERE bukrs = 'MU01'
        AND belnr = '99999'
        AND gjahr = '2008'.
      IF sy-subrc = 0.
        WRITE:/ 'register found!.'.
      ELSE.
        WRITE:/ 'register NOT found.'.
      ENDIF.
    When I run this code I get this results:
    register inserted
    register found!
    This is surprising to me, because I did not write the COMMIT WORK after the Insert.
    What I expected to have was:
    register inserted
    register NOT found
    zsic_abonos_chk is a transparent table without buffering, and the register does not exists before the Insert.
    The Database system is running below SAP is DB2.
    Can someone explain this behavior?
    Thanks in advance
    Jordi

    Today I spent some time to close this thread.
    I made this test:
    REPORT  ZTEST.
    DATA: wa_zsic_abonos_chk TYPE zsic_abonos_chk. "Is a transparent table
    START-OF-SELECTION.
       wa_zsic_abonos_chk-bukrs = 'MU01'.
       wa_zsic_abonos_chk-belnr = '999949'.
       wa_zsic_abonos_chk-gjahr = '2008'.
      INSERT into zsic_abonos_chk values wa_zsic_abonos_chk.
      IF sy-subrc <> 0.
        WRITE:/ 'register NOT inserted'.
      ELSE.
        WRITE:/ 'register inserted'.
      ENDIF.
      SELECT SINGLE *
        INTO   wa_zsic_abonos_chk
      FROM zsic_abonos_chk
      WHERE bukrs = wa_zsic_abonos_chk-bukrs
        AND belnr = wa_zsic_abonos_chk-belnr
        AND gjahr = wa_zsic_abonos_chk-gjahr.
      IF sy-subrc = 0.
        WRITE:/ 'register found!.'.
      ELSE.
        WRITE:/ 'register NOT found.'.
      ENDIF.
      ROLLBACK WORK.
      SELECT SINGLE *
        INTO   wa_zsic_abonos_chk
      FROM zsic_abonos_chk
      WHERE bukrs = wa_zsic_abonos_chk-bukrs
        AND belnr = wa_zsic_abonos_chk-belnr
        AND gjahr = wa_zsic_abonos_chk-gjahr.
      IF sy-subrc = 0.
        WRITE:/ 'register found!.'.
      ELSE.
        WRITE:/ 'register NOT found.'.
      ENDIF.
    The result is:
    register inserted 
    register found!.  
    register NOT found.
    This clarifies the matter.

Maybe you are looking for

  • I use preview for my work and since switching to Lion it's unusable.

    Preview has become useless to me. I have to resize photos to upload them at my newspaper. Sometimes, for some God-known reason, I have to switch formats and switch back to make them upload on my website. In the old Preview, I could simply do a screen

  • How to find Oracle SRID, or create one if it does not exist?

    Hi folks I am trying to find the Oracle SRID codes for EPSG codes 4893 and 4759, but am having no success yet. We are at version 10.2.0.4.0. This query returns no records for me: <pre> select * from mdsys.cs_srs where wktext LIKE 'GEOGCS[""NAD83(NSRS

  • Problems w/ buring DVD of photo slide show & best Premiere Elements 8 upgrade recommendation please.

    I created a video slide show in Adobe Photoshop & Premiere elements 8, kept getting messages:  "disk space low, exceeded recommended #of slides and/or recommended 30 minute duration".  So what, I want a 90 minutes slide slow?(!)  It allowed me to com

  • Rescue and Recovery "restore to factory settings" fails

    I have had need to recover my T61 to the state of original receipt. I boot from the recovery startup disc and select that I wish to recover to factory settings, and that I wish to save no files. After a progress bar fills, I am prompted to insert Pro

  • Linking Flash Files?

    I am trying to separate my 'scenes' into individual Flash files instead and need to link them together (using a menu, I need to have each module title go to that specific file). How do I do this??? Like linking scenes but instead linking actual files