Is there any Similar between Class.forName() and new operator ???

Plz tel me is there any Similar between Class.forName() and new operator ??? i have been asked this ques in interview

You probably should have used the other thread:
http://forum.java.sun.com/thread.jspa?threadID=792678
To add a little confusion to the matter...Class objects are in fact objects. They're objects representing classes. So, in a sense, I guess, you could say they're similar -- in each you get an object. But in practice Class objects and all other objects should be considered semantically different unless you're doing some pretty unusual stuff. Also Class.forName is more of a factory method than a constructor.

Similar Messages

  • Diffrence between Class.forName() and new Operator

    What is diffrence between class.forName() and new operator.Please tell in much detail.
    Also about classloader.loadclass.
    Suppose the class that we are tring to load with the help of class.forname is not compiled. Again if I make changes at runtime to that class will that get reflected.

    What is diffrence between class.forName() and new
    operator.Please tell in much detail.Class.forName loads a class. The new operator creates a new instance. Apple trees and apples.
    Also about classloader.loadclass.Read the API.
    Suppose the class that we are tring to load with the
    help of class.forname is not compiled.Then you can't load it and get an exception. Read the API.
    Again if I
    make changes at runtime to that class will that get
    reflected.Depends on the changes and when exactly you do them.

  • Is there any link between movement types and documents

    hi
    is there any link between sales doc and movement types ?
    is it the only source dependig on schedule line movement type will determined?
    if with out order we are doing delivery how system will determine movement type
    Thanks in advance

    Hi,
    Deliveries that are created without reference to order , contained movement type because to process a delivery you need to have some of the control criteria that are copied from sales document header to delivery document header, as system processes delivery in that way ,that is why you will find default order type is assigned to the delivery document type ie DL. .which helps the delivery document to process without reference to sales document.
    In Addition to above information,
    In VOV4,
    DL+ NORM +   +    -DLN
    In VOV5,
    For Itemcatagory DLN+        --CN
    From this schedule line category CN,movement type 601 is taken during without reference to order –delivery creation.
    MCM

  • Is there any difference between DDR3 memory and LPDDR3 memory? As i brought my macbook air 2013 recently and i saw the specifications it is indicating DDR3, buy apple website stated LPDDR3. Anyone can advise on this?

    Hi
    Is there any difference between DDR3 memory and LPDDR3 memory? As i brought my macbook air 2013 recently and i saw the specifications in the system info that is indicating DDR3, but apple website stated LPDDR3. Anyone can advise on this?

    Welcome to Apple Support Communities
    Read > http://en.wikipedia.org/wiki/Mobile_DDR DDR is the RAM used in computers, and LPDDR is common in mobile computers

  • Is there any difference between the iPod and the iPod hp?

    I'm new to iPods so forgive me if this is a foolish question but I've been thinking for a few weeks now about getting my daughter the shuffle. I bought the 1gb iPod shuffle hp today in Staples because they had it on sale but I'm wondering if there's any drawbacks to buying this one compared to buying it directly from Apple? As far as the electronics, is there any difference between the iPod and the hp iPod?

    Welcome to Apple Discussions!
    Electronically, there is no difference. The only difference comes in support. Apple allows you to call them for 90 days and one issue after you buy them, supporting windows and macs. HP will only help you if you are using a windows, however that support lasts one year. Keep in mind that if you need support, you'll have to go to an HP authorized repair center or another one of HP's options as the apple repair site and apple stores can't help in that regard.
    btabz

  • Is there any difference between an unlocked and sim free iPhone?

    Is there any difference between an unlocked and sim free iPhone?

    I think in the context you're using, they are pretty much the same thing. The only carrier on the planet as of this writing with the CDMA iPhone, which does not use SIM cards AT ALL, is Verizon in the U.S.
    There is a difference between an unlocked iPhone and an iPhone sold without a contract, but still locked to a carrier.
    This list details all of the currently supported iPhone carriers. http://support.apple.com/kb/ht1937
    Some carriers sell phones that are NOT carrier locked (i.e. SIM FREE). Some sell locked phones, but offer unlocking services for their subscribers. In SOME countries, unlocked phones can be purchased directly from Apple. Apple also sells locked phones, that do not require a term commitment with the carrier at what is usually the same price as an unlocked phone.

  • Is there any difference between "jsp:useBean" and "scriptlet" ?

    A few days ago, I asked similar question. But I didn't get the answer I wanted.
    I want to know the differnce between <jsp:useBean../> and <% .. %>(scriptlet).
    I tested in three environments(Oracle Jserv, OC4J, and Apache Tomcat).
    In Oracle Jserv and OC4J, a problem occured. But, Apache Tomcat does not occur a problem.
    For example,
    1) TestClass.java (Bean)
    public class TestClass {
    private String txt;
    public class TestClass {
    txt = "Test"; ----- (g
    public String getTxt() {
    return txt;
    2) test.jsp
    <html><body>
    <% TestClass test = new TestClass(); %> ---(h
    <%= test.getTxt() %>
    </body></html>
    Assume that I visit "http://localhost:8888/test.jsp".
    In Tomcat, if I change "Test"(number(g) to "Test1" and compile the browser shows the change.
    But Oracle Jserv and OC4J does not do that. They also show the old String.
    So, I changed <% TestClass test = new TestClass(); %>(number(h) to <jsp:useBean id="test" class="TestClass" />. That is, I changed "Scriptlet" to "JSP useBean Tag".
    Then, Oracle Jserv and OC4J also show the changes.
    To conclude, is there any difference between "JSP useBean Tag" and "Scriptlet"?
    Can't I use a scriptlet (to make a class) in Oracle Servlet Engine?
    Thanks.

    It could be as simple as the JSP not recompiling between java recompiles - ie, it compiles in the link to the old class.
    Try changing the JSP file (add and delete a space) after you change the java code, and then see what happens.
    Jonny
    null

  • Is there Any difference Between OBPM 10g And AlBPM 6.0

    Hello Friends
    I would like know is There any difference between the Oracle BPM 10g and ALBPM 6.0 . ??
    The second one is Difference between AlBPM5.7 and ALBPM 6.0
    Thanks In Advance
    with Regards
    Sandeep
    Edited by: user12036530 on Oct 18, 2009 9:08 PM

    For 10g Differences, check out: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/upgradeguide/deliverables/upgrade_guide/c_Head_Reference.html
    And other 10g Documentation: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/index.html Specifically: Upgrade Guide, Process API Differences (if you use PAPI)
    For 6.0 Differences, check out the Documentation: http://download.oracle.com/docs/cd/E13165_01/albsi/docs60/index.html Specifically: ALBPM 6.0 New Features Overview
    Hope this helps,
    -Kevin

  • Are there any links between HR organisation and user roles in R12

    Hi
    Do you know if there are any links between HR organisation and user roles i.e. can a role be assigned to an organisation in R12?
    Thanks
    Sean

    The thread stack sizes also depend on the type of threads you are
    working with.
    If you are working with POSIX threads :
    % man -s 3C pthread_create
    or if you are working with Solaris threads :
    % man -s 3C thr_create
    For these 2 cases, the default stacksize is 1MB for a 32-bit process.
    If you do not wish to use this default value, the man pages show
    you how to change this size in your code.
    There is a 3rd type of threads which you could be using that are
    generated by the compiler when doing compiler parallelization.
    By compiling with -xparallel or -openmp=parallel, the compiler
    can automatically parallelize loops in your code and create
    threads to do this work.
    For these type of threads, the default size is 4MB. However you
    can control this behavior through the environment variable
    ${STACKSIZE}
    The ${STACKSIZE} units are in KB, so to set your compiler
    generated threads stacksize to 8MB, you would say :
    % setenv STACKSIZE 8192
    If you are using Studio 11 as your compiler, see the "OpenMP
    API User's Guide" at :
    http://docs.sun.com/app/docs/doc/819-3694?a=load
    and look at section 5.5, "Stacks and Stack Sizes"

  • Is there any difference between the iPad and iPhone cables?

    Alot of people are mentioning that there's difference with the speed while syncronising/backup. I am just wondering is there any difference between the cables? and how can I distinguish it? Coz I have most of the i- products and I have just mixed up all the cables >__< Thank you!

    I can confirm that iPad/iPod cables are identical. Don't know about iPhone. IF there is a difference, you'll know immediately - function or functions won't work.
    There will be NO speed difference. Either the copper is present or it isn't and copper is copper.

  • Are there any difference between iPhone 4S and iPhone 5? What are they?

    What I already know is that iPhone 5 has a larger screen and is slimmer, but are there any difference between the two.  I have iPhone 4S now, should I buy iPhone 5?

    There are a number of major differences between iPhone 4S and iPhone 5, the major one being the processor speed.  iPhone 5 has a much faster processor – two times faster than the processor in iPhone 4S.  This difference is only significant if you use your phone to play high graphics games that require a lot of processing power.  This processing speed also makes the applications load and run faster – iPhone 5 even boots in a shorter time than iPhone 4S.  You can use iPhone 4S comfortably now but when games and graphic apps designed for iPhone 5 are released, you may be forced to upgrade your phone to run the smoothly.

  • HT204370 is there any difference between apple tv  and itunes PURCHASED movies

    is there any difference between apple tv purchase and itunes PURCHASED movies ?

    Welcome to Apple Support Communities
    Read > http://en.wikipedia.org/wiki/Mobile_DDR DDR is the RAM used in computers, and LPDDR is common in mobile computers

  • Is there any difference between a US and a UK iPad Mini?

    I am able to get an iPad Mini with Retina (32GB) from an American Air base in the UK (my fatehr was in the Air Force) and it's slightly cheaper than getting a UK iPad Mini with Retina (32GB). Is there any difference (apart from the charger in the box) between the two?

    BearMan705 wrote:
    the origional iPad so I could just use her charger (not sure if it's compatible)
    The original ipad uses a different connector than those of the 4th generation and later.

  • Is there any deference between generic object and create view

    In creating account for user in idm,I initialized a generic object
    we can do it with create view also
    in this process,is there any differences in using create view/generic object
    I don't know exactly which one we have to use

    Hi,
    Set the log level to 2 and the queries generated by the obiee and sql will be same.
    Thanks,
    Sandy

  • Is there any difference between Itunes store and apps store.  Confusing I think

    Is there NY DIFFERENCE BETWEEN APPS STORE ANS ITUNE STORE.  i AM A NEW USER AND i FINF=D THIS VERY CONFUSING

    On an iOS device no, iTunes app, App Store app & iBooks app, all are separate apps for what is one app, the iTunes app, on the Mac or PC. They all use the same Apple ID and iTunes account to buy content.

Maybe you are looking for

  • MacBook Pro 13'' Late 2013 keeps on crashing.

    Hey! I have a problem: My fairly new MBP (1 month old) started crashing about 2 weeks ago. since then, 3 different things occur after a random time (approx. between startup and 5 minutes in). The screen freezes and starts flickering, or The MBP just

  • How to manage a node with cardinality 0..n

    hi, i implemented a application with webdynpro which uses a sap babi. everything wents fine, except that i don't know which container i have to use for a cardinality 0..n. one node has this and so the attributes can entered as often as possible. but

  • HT201774 my SENT mail does not show up in my iphone

    my SENT mail does not show up in my iphone and will not sync with the rest of my mail

  • Simple WYSIWiG XML editor

    Hello, I try to write a simple XML editor using Swing. I have no problem processing the XML document itself (parsing XML, DTD and CSS) but now I need to display the parsed document and allow the user to edit it. My idea is to use "decorators" configu

  • Webservice call on page load

    Hi, I have an ADF application which uses webservices. I have two .jspx pages, one which calls the webservice 'pending contacts' on page load and displays the Pending contact list. The other page is for the new user registration, when I click on the r