Your SlideShare is downloading. ×
Class 5
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
74
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Kenia Álava
  • 2. 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
  • 3. 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