answersLogoWhite

0


Best Answer

in integral data types default value=0

in decimal type default value is 0.0

in boolean default value is fa

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is default values of different primitive data types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

What is primitive and composite data types in DBMS?

a composite data type is any data type which can be constructed in a program using its programming language's primitive data types and other composite types. The act of constructing a composite type is known as composition.


How many rice grains are in 5 grams?

Different types of rice have different amounts but an average of 49 grains


What are the four scalar types of PHP?

Four scalar types of PHPStringString is used for binary data. This can be text, content of an image file etc.$today = 'hey how are you';IntFor numeric values, Int is used. Int can contain a positive or a negative number.$total = 20000000;$temperature = -14 ;FloatFloat is used for numbers that have a fractional component. Float can also contain positive or negative values.$length = 145.78;$growthRate = -5.216;Sometimes name Double is used for Float values.BooleanBoolean is used for values that are either true or false. You would often see Boolean values in conditional statements.if (($age > 12) && ($age < 20)) {$teenage = true;} else {$teenage = false;}//Some content goes hereif ($teenage) {}


How much should a average 4th grader weigh?

There really is no average at this age. Different people have different body types, but the average is about 80 pounds.


What different types of online calculator are available to use for free?

The types of online calculators that are available for free are listed on the Wolfram Alpha website. A dedicated agent will be happy to help you find more information on their official website.

Related questions

What are the default values of different primitive types?

The default values for primitive types in Java are the following:Data TypeDefault Valuebyte0short0int0long0Lfloat0.0fdouble0.0dchar'\u0000' (or 0)String (or any object)nullbooleanfalseNote if you use the Object wrappers of primitives (e.g., Byte, Integer, Double, Float, etc.) then like any Object the default value is null.


What do you mean by vectors only hold objects not primitive data types?

It means that you can only store values like Integer, String etc in a Vector and not values like int, float etc. int, float, double etc are primitive data types. collections by their default behavior can hold only objects and not primitives.


What are primitive variables?

Primitive variables are variables that are not objects and carry primitive values like numbers, boolean etc. The primitive data types in java are:intbytefloatcharlongbooleanshortdouble


What are the Different types of data type?

Java Data TypesJava is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. 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. The eight primitive data types supported by the Java programming language are: byte, short, int, float, double, long, char and boolean


When an array contains values other than primitive data types is it considered a control array?

Only if the non-primitive data types are actually controls, such as an array of label controls, or an array of edit boxes. However, a control array is still an array. The only difference is that the values will likely be resource handles (objects that refer or point to the actual object which will be stored elsewhere in memory) rather than an actual value itself. That is, an array of primitive data types stores the actual value in the array itself.


Define and give three examples of primitive data types?

A primitive variable can be one of eight types: char, boolean, byte, short, int, long, double, or float. Once a primitive has been declared, its primitive type can never change, although in most cases its value can change. they are used to store values like name, age, salary etc.


Java variable types and controls?

Java is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. 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. The eight primitive data types supported by the Java programming language are:byte, short, int, long, float, double, char and boolean


What are object oriented programming language's?

Languages where all types, including primitive types such as integers, are implemented as objects. Java is a pure object oriented language. C++ is not pure because integers, floating point values and pointers are primitive data types that are not implemented as objects. As a result, Java is easier to program, but C++ is more efficient.


Innumerate the different types of data type?

eight primitive data types are: -boolean -char -byte -short -int -long -double -float


Data types in c primitive and non primitive?

Primitive types are the data types provided by a programming language as basic building blocks. Primitive types are also known as built-in types or basic types. Depending on the language and its implementation, primitive types may or may not have a one-to-one correspondence with objects in the computer's memory. However, one usually expects operations on primitive types to be the fastest language constructs there are. Integer addition, for example, can be performed as a single machine instruction


What is the difference between sign and unsign in Java?

Normally, signed and unsigned data types just refer to whether or not a value can be negative or not. An unsigned 4-bit value can be the values 0 to 15 A signed 4-bit value can be the values -8 to 7 However, there is no such thing as an unsigned value in Java*. All primitive types are signed by default and cannot change. *Note that technically a char value can be considered an unsigned type. The only way to see this is to declare a char with value '\uffff' (or 65535) and try to print it out as both a short and an int. If you try this with any other data types, the larger values will display the same as the smaller values. Not so with the char example.


Different types of input?

HTML provides various types of input values that can be used. These values can be Text Box, Radio Button, Check Box etc.