Coder Social home page Coder Social logo

corejava's Introduction

Core JAVA

Index

This project contains many java most asked interview question with example

Data Types

Primitives

A primitive type always have a value.

Table to Understand Algorithms & Bits used by a datatype

Data Type Default Size Range Algorithm
boolean false 1 bit true or false simple flags
char '\u0000' 2 byte '\u0000' (or 0) to '\uffff' (or 65,535 inclusive) single 16-bit Unicode character
byte 0 1 byte -128 to 127 (inclusive) 8-bit signed two's complement integer
short 0 2 byte -32,768 to 32,767 (inclusive) 16-bit signed two's complement integer
int 0 4 byte -2,147,483,648 (-2^31) to 2,147,483,647 (2^31 -1) (inclusive) 32-bit signed two's complement integer
long 0L 8 byte -9,223,372,036,854,775,808(-2^63) to 9,223,372,036,854,775,807(2^63 -1)(inclusive) 64-bit two's complement integer
float 0.0f 4 byte unlimited single-precision 32-bit IEEE 754 floating point
double 0.0d 8 byte unlimited double-precision 64-bit IEEE 754 floating point

Non-Primitive (Reference Type)

A non-primitive type can be null.

  1. Strings
  2. Arrays
  3. Classes
  4. Interface
  5. Enum

© 2018 sorabh86

corejava's People

Contributors

sorabh86 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.