DEV Community

Khushi Thakuri
Khushi Thakuri

Posted on

BASIC CONCEPT OF JAVA.

Java is a high-level programming language originally developed by Sun Microsystem and released in 1995.Java is an Object-Oriented Programming(OOP) structure. Java is a 0 index based language. To be exact, java is a case-sensitive language.

Types of data types in java.

Primitive Data Type = build-in data types that are predefined.
examples-
//byte =1 [range from -128 to 127]
//short =2
//int =4 [1,2,3]
//long =8
//float =4 [1.2,1.6,5.9]
//double =8
//char =2
//boolean =1

** notes= double is used to store larger values.

      Boolean has two two possible values either 
      true or false.
Enter fullscreen mode Exit fullscreen mode

Non-Primitive Data Type = Data types that are not pre-defined and are created by programmers.
example-
//String
//concatenate
//charAt
//Replace
//Substring

Top comments (0)