This content originally appeared on DEV Community and was authored by yaswanth krishna
What is Java?
_Java is a popular programming language, created in 1995.
It is used for:
Mobile applications (specially Android apps)
Desktop applications
Web applications
Web servers and application servers
Games
Database connection
And much, much more!_
---------------------------------------------------------------------Why Use Java?
_
Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
It is one of the most popular programming languages in the world
It has a large demand in the current job market
It is easy to learn and simple to use
It is open-source and free
It is secure, fast and powerful
It has huge community support (tens of millions of developers)
Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs_
What is Variables ?
_ String - stores text, such as "Hello". String values are surrounded by double quotes
int - stores
integers (whole numbers), without decimals, such as 123 or -123
float - stores floating point numbers, with decimals, such as 19.99 or -19.99
char - stores single characters, such as 'a' or 'B'. Char values are surrounded by single quotes
boolean - stores values with two states: true or false_
*What is data types?
*
_1. A variable in Java must be a specified data type:
- Data Type Description
- byte Stores whole numbers from -128 to 127
- short Stores whole numbers from -32,768 to 32,767
- int Stores whole numbers from -2,147,483,648 to 2,147,483,647
- long Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
- float Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits
- double Stores fractional numbers. Sufficient for storing 15 to 16 decimal digits
- boolean Stores true or false values
- char Stores a single character/letter or ASCII values
- _
This content originally appeared on DEV Community and was authored by yaswanth krishna
yaswanth krishna | Sciencx (2025-02-22T04:06:58+00:00) Reveision java. Retrieved from https://www.scien.cx/2025/02/22/reveision-java/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.