Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Java Programming Language Interviews:Advanced JavaCore JavaEclipseFull Stack Developer (Java)HibernateIBM WebSphereInternationalization LocalizationJ2EEJ2MEJ2SEJavaJava ANTJava AppletJava BeansJava ClassesJava EJB ProgrammingJava Game DeveloperJava GUI FrameworkJava JNDIJava JNIJava JSP ProgrammingJava Message Service (JMS)Java Multi-ThreadingJava Networking - Sockets and RMIJava PatternsJava SecurityJava Server FacesJava Servlet ProgrammingJava Software EngineerJava Swing ProgrammingJava TechnicalJava ThreadsJava Transaction APIJava Web ServicesJavaMailJBossJDBCJMSJSFPortal and PortletRMISpring FrameworkSr.Java Web DeveloperStrutsSunOneSwing AWTSWT JFace
Copyright © 2018. All Rights Reserved
Java JNI Interview Question:
Why does Java have different data types for integers and floating-point values?
Submitted by: AdministratorThe integer and floating-point types are different in terms of the consumption of the bits which represent them. There are certain data types which are rightly apt for speed and perfect memory utilization. This makes the java applications to execute with efficiency. For example the number 95 is within the range of byte, short, int and long integer types. The data type byte will occupy 8 bits, short occupies 16 bits, and int occupies 32 bits and long 64 bits. If the variable is restricted to hold only the values -128 to +127, then throughout the application it is wise to declare that variable as ‘byte'. Similar applicability is applied for the rest of integer types and floating-point types.
Submitted by: Administrator
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.