Android Tutorial Java-Primitive Data Types(Part-5) | Edureka

Published: 22 October 2012
on channel: edureka!
1,943
3

Take a Free introductory instructor-led Live class at : http://www.edureka.co/android-develop...

This android tutorial talks about Primitive data types in detail:

*What are Primitive data types?
*Is String a Primitive data type?
*Can we use new keyword with Primitive data types?

Watch this android tutorial to know the answers.

Primitive Data types :
-------------------------------

In Java programming language all variables must first be declared before they can be used as Java is statically-typed. This involves stating the variable's type and name.

A variable's data type determines the values it may contain, plus the operations that may be performed on it. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values.

String :
----------

String isn't a primitive data-type - it's a class. Although the compiler has special support for Strings, such as converting string literals into String instances, and performing String concatenation, String is not a primitive type, but a Class. By convention, class names begin in uppercase.

----------------------------------------------------------------------


Please write back to us at [email protected] or call us at +91-8880862004 for more information.
http://www.edureka.co

Use the link to watch all videos of this session :
   • Android Tutorial - Java Essentials fo...