Any difference between these

Hi,
it is said that the legal range of a byte type is -128 - 127,
and that of a byte integral type is -32768 - 32767.
is that true? and what's the difference between a "byte type"
and a "byte integral type"?
thanks,
eileen2

There are 4 integral data types in Java.
(1) byte
size = 8 bit
range = -128 to +127
(2) short
size = 16 bits
range = -32 768 to +32 767
(3) int
size = 32 bits
range = -2 147 483 648 to +2 147 483 647
(4) long
size = 64 bits
range = about +/- 9.22e18

Similar Messages

  • Are there any differences between these two kinds of constructor

    one pass x a value in a method;
    another not;
    are there any differences when using them?
    ===========
    class ConstructorA
         int x=1,z;
         public ConstructorA(int a){
              z=a;          
    class ConstructorB
         int x,z;
         public ConstructorA(int a){
              x=1;
              z=a;          
    }

    Well the problems would arrive when you add other constructors:
    - if the default value for x is really 1, whatever the way the object is initialized, then it's better to declare it in x's declaration. Otherwise if someone adds to this class a constructor that forgets to set x=1, x's value will remain 0 and bugs may occur.
    - if the default value for x depends on the way it is initialized, then on the contrary it's better to initialize it explicitly in the constructors, and not in x's declaration so as not to have several constructors with inconsistent code.

  • Is there any difference between these cluster images when creating a user event?

    I'm sure you experts will know instantly what I'm doing wrong.
    I am trying to create a user message for TestStand communication in the LabVIEW UI (based on the simple example OI that comes with TestStand)
    Perhaps it's just cosmetic but the trouble is I can't get the image of my cluster constant to look the same as the one in the example.
    I'm right clicking on the 'Create User Event' icon on the User Event Data Type connection and selecting Cluster - Cluster Constant, then adding a numeric constant to it.
    You can see the result here. The top one is the good one from the example, and the bottom one is my attempt - but I just can't get it.
    I'd appreciate your thoughts (I know the event number can't be the same - but I made it the same for the comparison). I have LabView 8.6.1.
    Thanks,
    Ronnie
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
    Solved!
    Go to Solution.

    Use the color tool and right click on the lable of the numeric. I guess you will see that the Background Color of the one is black, of the other is white.
    But this is really just cosmetic's of the code.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Difference between these 2 Laptops: X201 / T410 : Links

    Hello
    I dont see any difference between these 2 :/. ( Power/Display...)
    http://cgi.ebay.fr/LENOVO-THINKPAD-T410-i7-620M-2-66Ghz-4GB-320GB-7-2K-/190456687118?pt=Laptops_Nov0...
    http://cgi.ebay.fr/LENOVO-THINKPAD-X201-i7-620M-2-66GHZ-4GB-RAM-500GB-7-2K-/190456645897?pt=Laptops_...
    Which one is the best?
    Thks

    Hi stevekho,
    Besides obvious differences in the specs, I think it's more like which one best meets your requirement because one is an ultraportable with 12 inch screen and the other performance thinkpad with 14 inch display. X201 doesn't come with optical drive, whereas T410 does. There may be other differences too like internal features etc. in order to find out I would suggest consulting this:- ThinkPad Notebooks
    If I were you I would read the reviews first, and decide based on which one would greatly accommodate my needs, you can read reviews at following links:-
    Lenovo ThinkPad X201 Review
    Lenovo ThinkPad T410 Review
    Hope it helps.
    Maliha (I don't work for lenovo)
    ThinkPads:- T400[Win 7], T60[Win 7], IBM 240[Win XP]
    IdeaPad: U350
    Apple:- Macbook Air [Snow Leopard]
    Did someone help you today? Compliment them with a Kudos!
    Was your question answered today? Mark it as an Accepted Solution! 
      Lenovo Deutsche Community     Lenovo Comunidad en Español 
    Visit my YouTube Channel

  • Any difference between:  if ( a 16) or if ( a =15 ) ?

    i need a test to see if an int is equal or less then 15
    first code was
    if ( myint <= 15 )
        doSomething
        }This is the most natural way because the test corresponds with the demands.
    Then i started to ponder
    I following better ?
    if ( myint < 16 )
        doSomething
        }I guess not because any smart compiler should know best way for both and make similar code.
    So my question: IS there any difference ?

    public class LTTest {
      public static void testOne(int a) { if (a <= 15) System.exit(15); }
      public static void testTwo(int a) { if (a <  16) System.exit(16); }
    $ javap -c LTTest
    Compiled from "LTTest.java"
    public class LTTest extends java.lang.Object{
    public LTTest();
      Code:
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
    public static void testOne(int);
      Code:
       0:   iload_0
       1:   bipush  15
       3:   if_icmpgt       11
       6:   bipush  15
       8:   invokestatic    #2; //Method java/lang/System.exit:(I)V
       11:  return
    public static void testTwo(int);
      Code:
       0:   iload_0
       1:   bipush  16
       3:   if_icmpge       11
       6:   bipush  16
       8:   invokestatic    #2; //Method java/lang/System.exit:(I)V
       11:  return
    }As we can see, a<=15 generates an "if_icmpgt" bytecode, where a<16 generates "if_icmpge". Whether there's any difference between these or not depends (as others have noted) on how the JVM implements the bytecodes, on how HotSpot compiles, and on the generated assembler and the architecture of the machine you're running on.
    The net? The literal answer to your question is "if_icmpgt vs if_icmpge". But if you're asking if there's any noticeable runtime difference - there are too many variables to tell.
    Grant

  • Whats the difference between these two queries ? - for tuning purpose

    Whats the difference between these two queries ?
    I have huge amount of data for each table. its takeing such a long time (>5-6hrs).
    here whice one is fast / do we have any other option there apart from listed here....
    QUERY 1: 
      SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end)
        FROM
          tab1 inner join tab2 on condition1 inner join tab3 on condition2 inner join tab4 on conditon3
        WHERE
         condition4..10 and
        GROUP BY
          field1, field2,field3
        HAVING
          sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end) <> 0;
    QUERY 2:
       SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0))
        FROM
          tab1, tab2, tab3, tab4
        WHERE
         condition1 and
         condition2 and
         condition3 and
         condition4..10
        GROUP BY
          field1, field2,field3
        HAVING
          sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0)) <> 0;
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
    Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
    Andre

  • Difference between these Thunderbolt cables for an iMac?

    What is the difference between these two Thunderbolt cables for connecting Thunderbolt harddrive docking station to an iMac?
    http://store.apple.com/us/product/MD862ZM/A/apple-thunderbolt-cable-05-m
    http://store.apple.com/us/product/MD861ZM/A/apple-thunderbolt-cable-20-m
    Thanks!

    Along the lines of this topic, does anyone know whether Mini DisplayPort cables are usable for Thunderbolt? Here's one, for example, that's cheaper than Apple's $29 cable:
    http://www.amazon.com/exec/obidos/ASIN/B009NE77TQ/
    I would be concerned about (at least) two things:
    1. Can it handle the speed?
    2. Does it have the right circuit?
    It's possible that if it *seems* to work in a thunderbolt application, you might still run into trouble with intermittent data failure if it's not up to the task.
    Thanks for any thoughts.

  • Are there any difference between fx. the Nvidia FX3800 and GTX 260?

    Does anybody understand why I fell frustrated and confused about all this videocard discussions?
    Some tells me that the FX3800 is a better card - more pro - stabillity etc. than low-price cards - like GTX 260/285/295 - and some tells me that GTX 260 = FX3800. I read on other webpages about how people are having problems having their GTX 260 recognized as a FX 3800 (not in PPro but by Nvidia software). Other places tells about how to softmod GTX 260 to a FX 3800. Some tells me that there is a big difference between these cards - others they are almost alike - same GPU etc. I read that the difference between GTX 260 and FX 3800 is only the looks of it from outside - inside they are alike - and that apart from that only drivers are different.
    I have ordered the FX 3800 - believing it will perform better and more stable and give me really good playback rendering inside PPro CS5 compared to my GTX 260. If I get the same performance and stability by just changing two lines in a textfile with my old GTX 260 I feel cheated...I hope this is not happening.
    Someone from Adobe or Nvidida - please tell us - what there is a differnece between fx. the GTX 260 and the FX 3800 besides from the outside look and some drivers? If there is no difference between them - I can not see any other reason for only supporting the FX cards than $$$...If there are a difference in Quadra/FX favour - and I sincerly hope so -  I understand why you choose Quadro cards - but if they are just alike inside - I just feel we have all been mislead. I could have saved my money...time will show - I get the FX 3800 in a few days...can´t return it (danish rules when you buy it as a company) - so I´m 1000$ short this month...:(
    I would feel much more comfortable in having ordered the FX 3800 if someone from Adobe could tell me excactly how much better FX 3800 is from the GTX 260 - apart from being supported and the GTX is not. And if there is more in it than just changing a simple textfile? Are there any more things going on inside PPro - deep inside - that affects performance with FX cards besides from two lines in a textfile? Who can help answering that question - and I mean really answering it in serious way - not just saying - off course the FX is better - because its more expenssive.
    Haven´t we all experienced this in other situations? Like buying a car? Fx. Inside SKODA FABIA is a VW engine like the ones used in much more expensive VW cars. Only difference is the name and the outside look - and some comfort. The engine is the same - and in a way you could say that from an engine-point-of-view - the cars are alike. But you pay for comfort.
    Is the same thing going on here? I pay more for FX 3800 for the looks of it from the outside and some software-drivers that makes it more stable - but inside it is just like GTX 260? So from a graphic-performance-GPU-point-of-view I actually have two cards that are alike and I reaaly am paying for software and not hardware?
    /Morten

    You are right -. and I keep spanking myself in the head with a wet towel.
    I will lie in my bed - thinking of the nice new bicycle I could have bought instead of the FX 3800....;-)
    No seriously - I know what I have done - and maybe I have done right - I don´t know? Time will show and I will sell or buy.
    What I am frustrated about is the fact that I actually just decided to buy FX 3800 because Adobe and Nvidida toold me too -  to get support for MPE and now it seems that my old GTX 260 is much like the FX 3800 if not the same inside? And I am frustrated about that it is possible to change a line in a simple textfile and suddenly get support for the GTX 260 to play MPE. This fact only put more lit on the conspiracy-fire about Adobe and Nvidia having made a simple software-trick to make some cards work others not = making a lot of money on fools like me...
    You must admitt it is a rather tempting conclusion - if one is in the conspiracy-mood. Well - I try to think good about people. And Adobe convinced me at last that I needed the FX 3800 card. So I did order it eventually - because I need the MPE NOW - Can´t wait - having so bad performance and issues with PPro 4 - been so frustrated about edditting for almost ½ a year now - constantly having issues etc. And I am going to start new big project in 7 days. Have just spend 2000$ on upgrade to Master Collection and have making thoughts about wich card to buy long time ago - the GTX 285 or FX 3800 - to get the MPE support. And same day I order I suddenly see that the softmod makes my old GTX 260 to a FX 3800. And other posts claim that the cards are the same inside. No wonder I get frustrated - others must be the same.
    So what I am trying to say is that: I feel like Adobe and Nvidida is not being honest with us. If it turns out that the only thing Adobe has done is making a simple textfile to make cards supported or not by enteringior changing the names of the cards inside the textfile - and nothing else....And if fx. a softmoded GTX 260 turns out to perform excactly the same and be as stable as a FX 3800 to 5-6 x the price - I will feel cheated and feel like a stupid fool.
    I certainly do not hope this is what is going on. But it seems no one can help me but myself - testing and trying these cards - and I will try to post my results in this forum - so others might have easier tomake a choice...
    I´l be back....
    Cheers

  • What is the difference between these two instant ink printers?

    Looking to get one of the HP instant ink printers from Best Buy. Either the Envy 4500 or the Envy 5530. There is a $20 diference and I did a side-by-side comparison of them on the Best Buy site, but the only difference I can notice is the 5530 seems to have more memory than the 4500 (128MB vs 32MB).
    Print speeds and resolutions seem to be the same. The cheaper one (4500) also seems to be able to do two-sided printing & reduction/enlargement (which I would have thought to be on the more expensive mode). So are there any other real differences between these two or have I pretty much covered them all?

    HI - great question, you identified a few of the differences.  Some additional differences are:
    4500 has a monochome display that is not touch enabled (you have to use scroll buttons on the side of the screen)
    5300 has a touch enabled color display
    Both printers can do duplexing (printing on both sides) and both have wireless.  
    We are excited about Instant Ink  and hope you enjoy the service & whichever printer you chose!  
    Although I am an HP employee, I am speaking for myself and not for HP

  • Differences between these statements

    Could you please let me know the exact difference between these two statements?
    ALTER SESSION ENABLE PARALLEL QUERY;
    ALTER SESSION FORCE PARALLEL QUERY PARALLEL 16;In the second one we can control the number of parallel threads .
    Is there any other difference between these two?
    Thanks in advance!
    Edited by: Pandeesh on Feb 12, 2013 8:26 AM
    Edited by: Pandeesh on Feb 12, 2013 8:27 AM

    >
    Thanks! I checked the documentation just now.
    >
    I don't understand how you could have checked the documentation if you still don't understand what the word FORCE adds to things.
    I just checked the documentation and it seems pretty clear to me.
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2012.htm
    >
    ENABLE Clause
    Specify ENABLE to execute subsequent statements in the session in parallel. This is the default for DDL and query statements.
    •DML: DML statements are executed in parallel mode if a parallel hint or a parallel clause is specified.
    •DDL: DDL statements are executed in parallel mode if a parallel clause is specified.
    •QUERY: Queries are executed in parallel mode if a parallel hint or a parallel clause is specified.
    Restriction on the ENABLE clause You cannot specify the optional PARALLEL integer with ENABLE.
    DISABLE Clause
    Specify DISABLE to execute subsequent statements in the session serially. This is the default for DML statements.
    •DML: DML statements are executed serially.
    •DDL: DDL statements are executed serially.
    •QUERY: Queries are executed serially.
    Restriction on the DISABLE clause You cannot specify the optional PARALLEL integer with DISABLE.
    FORCE Clause
    FORCE forces parallel execution of subsequent statements in the session. If no parallel clause or hint is specified, then a default degree of parallelism is used. This clause overrides any parallel_clause specified in subsequent statements in the session but is overridden by a parallel hint.
    •DML: Provided no parallel DML restrictions are violated, subsequent DML statements in the session are executed with the default degree of parallelism, unless a degree is specified in this clause.
    >
    This is the DML bullet point for ENABLE
    >
    •DML: DML statements are executed in parallel mode if a parallel hint or a parallel clause is specified.
    >
    And this is the one for FORCE
    >
    FORCE forces parallel execution of subsequent statements in the session. If no parallel clause or hint is specified, then a default degree of parallelism is used.
    >
    The word ENABLE does just what you would expect it to do: it ENABLEs (allows) parallel to be used. Parallel will be used if, as the doc quote says, 'a parallel hint or a parallel clause is specified'.
    The word FORCE does just what you would expect it to do: it FORCEs parallel to be used. As the doc quote says 'FORCE forces parallel execution of subsequent statements in the session. If no parallel clause or hint is specified, then a default degree of parallelism is used.'.
    With FORCE parallel WILL be used. With ENABLE parallel MAY be used.
    If you still don't understand the difference then please explain what it is you are having trouble with.

  • What is the difference between these two sticks of RAM?

    I am upgrading my Macbook 2.2 GHz Intel Core 2 duo from 2GB of ram to 4GB
    What is the difference between these two kits?
    4GB Kit (2 x 2GB) 200 Pin DDR2-667 PC2-5300 256x64 CL5 1.8V SODIMM ($102.00)
    4GB Kit (2 x 2GB) eRam 200 Pin DDR2-667 PC2-5300 CL5 1.8V SODIMM ($88.00)

    Probably nothing of any consequence. Some places can just negotiate better deals with suppliers. Or one of a million other factors that can affect price is in play here.
    When buying RAM, I generally find it's better to pay a little extra to get a brand that's known for quality. I usually stick to Crucial myself. If you look around, you can probably find some real steals out there, but I don't know... With stories of people who literally go dumpster diving, salvaging stuff that was slated for disposal, then turning around and selling it... I prefer not to take chances. If you are, by all means, go for the cheaper one.

  • Any difference between Master data and User master data ?

    Any difference between Master data and User master data ?

    hi
    A user master record defines the authorizations assigned to a user. Based on these authorizations one can access the master data.
    Master data - it is the data which is used long term in SAP r/3 system such as vendor master , material master, customer master,
    there is no such thing like user master data to the best of my knowledge
    hope this helps
    regds
    Manan

  • Whats the difference between these products ?

    Hi,
    can somebody tell me what's the difference between these products ?
    Support Portal - Installations and Upgrades - Entry by Application Group - AP BusinessObjects portfolio:
    -SBOP EDGE BI
    -SBOP EDGE DATA INTEGRATOR (formerly Edge Professional)
       -SBOP EDGE BI WITH DI
    -SBOP EDGE DATA MANAGEMENT (formerly Edge Premium)
       -SBOP EDGE BI WITH DM
       -SBOP DATA CLEAN. PACKAGE EDGE
    -SBOP ENTERPRISE
    Is the DATA INTEGRATOR  and/or DATA MANAGEMENT  inculded in SBOP ENTERPRISE ?
    Thank You
    Martin Sautter

    Hi,
    Normally, BOE / BI installers don't include any of those other EIM components. However, they are bundled in the 'edge' offering, which is licensed differently for smaller enterprises.
    For all DI, DS, DQM topics,  which fall under EIM family, please open a thread over here: http://scn.sap.com/community/enterprise-information-management
    Regards,
    H

  • What is the main difference between these two api

    Hi
    I am using portal 3.0.9.8.1 under NT environment.
    I am planning to change the user's password programmatically.
    Could someone advise me about the difference between these two
    api:
    wwsso_api_user_admin.change_password and
    wwsso_api_user_mgr.change_password
    Are these api the same?Are they affecting the same table?
    Thanks in advance for any clarification
    Regards

    Michelle1892773 wrote:
    What is the main difference between LOCAL VARIABLE, REFERENCE, PROPERTY NODE and INVOC. NODE?
    Can u show this with an example in a VI using all these?
    Basic overview. Someone can go into more depth if they want.
    Local Variable - Correlates to some location in memory that holds information. Based on the data type, it looks at that location and interprets the 1's and 0's as either a double, integer, string, structure(cluster), etc.
    Reference - ill leave the details of this to someone else I can't give a decent explanation.
    Property node- sets different "properties" of a control/indicator etc. One of the properties is value so that works similar to a local variable. However, you can set much more than that. For example, with controls you can set the property of visible, not visible, color, etc etc.
    Invoke node - invokes some "method." i.e. calls some function to act on something
    These may not be the best explanations, or even 100% correct. But it should get you started. I'm sure someone else will build on this.
    CLA, LabVIEW Versions 2010-2013

  • Any difference between this two sql

    are there any difference between this two sql
    -- table definition : create table test(col varchar2(20) not null)
    select * from test where col like '%%'
    --and
    select * from test
    any difference there? please give some detailed analysis. thx.

    Also take care when there are indexes.
    SQL> create unique index testtab_col on testtab( col );
    Index created.
    SQL> set autotrace on explain                                            
    SQL> select * from testtab;
    COL
    col1                         
    col2
    Execution Plan
    Plan hash value: 2692415588
    | Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |         |     3 |    21 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| TESTTAB |     3 |    21 |     3   (0)| 00:00:01 |
    Note
       - dynamic sampling used for this statement
    SQL> select * from testtab where col like '%%';
    COL
    col1
    col2
    Execution Plan
    Plan hash value: 2166828774
    | Id  | Operation        | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |             |     2 |    14 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX FULL SCAN | TESTTAB_COL |     2 |    14 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("COL" LIKE '%%')
    Note
       - dynamic sampling used for this statement
    SQL>So no - bottom line is that these SQLs are different. They may look superficially the same and even under certain circumstances act the same. But they are not the same.

Maybe you are looking for

  • [SOLVED] problem with PostfixAdmin

    I was following the tutorial for installing an email server... and on  this PostfixAdmin step i have a problema. https://wiki.archlinux.org/index.php/Si - stfixAdmin I installed successfully the postfixadmin package but there is no  http://localhost/

  • If macbook retina's display have a problem

    I want to know that if it have a problem only display (broken a bit), it'll change only display or all of macbook and how much i'll pay for it? and how long you spend for this problem?

  • System copy based on export/import on MSCS

    Hi, a NW 7.0 istance (BW usage) on MSCS... we would like to copy to new host (as dev refresh). This MSCS is made of: - host1 (first node) - host2 (second node) - mscdhost (mscs virtual host) - orahost (oracle virtualhost... on a dedicated group) - sa

  • Table for updating Fixed cost

    hi, Please suggest me the table or procedure to find the Fixed Cost in SALES ORDER COSTING. the field name is FK,Data element is  CK_FK_S1 ,structure is  CKCOSTLINE. Thanks in Advance.

  • Nokia 701 safety guide needed

     Hii,First of all i want to say "I love nokia". And I just bought Nokia 701 .. 3 or 4 days ago..Its my first smartphone of my life  And i really want to keep it safe..I want to use it for minimum of 4 years ..but within 3 days i saw many scratches on