Class 5
Upcoming SlideShare
Loading in...5
×
 

Class 5

on

  • 227 views

 

Statistics

Views

Total Views
227
Slideshare-icon Views on SlideShare
212
Embed Views
15

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 15

http://keniiaflak.blogspot.com 15

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Class 5 Class 5 Document Transcript

    • Kenia Álava
    • There are a bunch of guys that are used very often in programming and requires specialtreatment. Types can be considered as "primitive", the reason for this special treatment isthat to create a new object, a simple variable small, not efficient. To these primitive types,Java uses the technique used in C and C + +, that is, instead of creating the new variablecreates a variable "automatic" is not a reference.Java determines the size of each primitive type. These sizes do not change from onemachine to another architecture. This invariability of the sizes is one of the reasons ofportability java. Kenia Álava
    • Defaults primitive membersWhen a primitive data type as a member of a class, Java guarantees that you will beassigned a default value if it fails to boot:The defaults are only the values that Java guarantees when the variable is used as a classmember. This ensures that the member variables of primitive type always be initialized(something C + + does not do), reducing a source of potential errors. However, this initialvalue may not be correct or even legal for the program you are writing. It is best to alwaysinitialize variables explicitly.This warranty does not apply to initialize local variables, those that are not class fields. Kenia Álava