Skip to main content

DIFFERENCE BETWEEN INTEGER AND FLOATING POINT DATA TYPE


Integer
Floating point
An integer is an integer valued number.
A floating point is a decimal number that contains a decimal point or an exponent or both.
Integer data type can be written in three deferent number systems: decimal, octal, and hexadecimal.
Floating point data type can be written only decimal number system.
Integer data types require memory 2 bytes.
Floating point data types require memory 4 bytes.
Any combination of digit from the set 0 through 9 consist Integer data type.
A decimal or exponent must be present in floating point data type.
Example : 1254,789 etc.
Example: 3.2/9.58e*05 etc.

Comments

  1. You can clear many of your doubts regarding data types in Core Java through Merit Campus, visit: http://java.meritcampus.com/core-java-topics/data-types-in-java, http://java.meritcampus.com/core-java-topics/floating-point-data-types-in-java

    Not only data types, we also have each and every topic in Core Java with example for each. You can read lot of sessions and can write many practice tests in Merit Campus Java website. visit: http://java.meritcampus.com/core-java-topics/ to know more.

    ReplyDelete
  2. This is really help full

    ReplyDelete
  3. Really helpful for me at the right time before 2 days of exam..Thank you so much

    ReplyDelete
  4. This site can be a stroll-by for the entire information you needed about this and didn’t know who to ask. Glimpse here, and you’ll undoubtedly discover it. best online casinos

    ReplyDelete
  5. Hey! This blog is more informative and user friendly

    Thank you so much for giving this information to me..

    Herbal skin care products

    ReplyDelete

Post a Comment

Give your valuable Comment...

Popular posts from this blog

Object-Oriented Programming and JAVA Programming Language

  Object-Oriented Programming and:   Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, olymorphism, and inheritance. Many modern programming languages now support OOP, at least as an option. JAVA Programming Language: Object-oriented programming is at the core of Java. In fact, all Java programs are object-oriented, this isn’t an option the way that it is in C++, for example. OOP is so integral to Java that you must understand its basic principles before you can write even simple Java programs. Therefore, this chapter begins with a discussion of the theoretical aspects of OOP.

Compilation Process of a C++ Program

Compiling a C++ program involves a number of steps (most of which are transparent to the user): · First, the C++ preprocessor goes over the program text and carries out theinstructions specified by the preprocessor directives (e.g., #include ). The result is a modified program text which no longer contains any directives. · Then, the C++ compiler translates the program code. The compiler may be a true C++ compiler which generates native (assembly or machine) code, or just a translator which translates the code into C. In the latter case, the resulting C code is then passed through a C compiler to produce native object code. In either case, the outcome may be incomplete due to the program referring to library routines which are not defined as a part of the program. For example, Listing 1.1 refers to the << operator which is actually defined in a separate IO library. · Finally, the linker completes the object code by linking it with the object code of any lib...

Read or input form user in Java using BufferedReader

 BufferedReader use to read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.The buffer size may be specified, or the default size may be used. The default is large enough for most purposes. In Java  BufferedReader is a efficient method to read an input. Here given a short example to read a string from user and print it: package palindrome; import java.io.BufferedReader; import java.io.InputStreamReader; public class  inputExample   {     public static void main(String[] args) throws Exception {    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));     String s = new String();       s =br.readLine();     System.out.println(s);     } }