Posts

Showing posts with the label Java language

Variables in JAVA Language

Java Variables : Variables store data for processing. A variable is given a name (or identifier), such as area, age, height, and the like. The name uniquely identifies each variable, assigning a value to the variable and retrieving the value stored. Variables have types. Some examples: - int: for integers (whole numbers) such as 123 and -456 - double: for floating-point or real numbers with optional decimal points and fractional parts in fixed or scientific notations, such as 3.1416, -55.66. - String: for texts such as "Hello" or "Good Morning!". Text strings are enclosed within double quotes. You can declare a variable of a type and assign it a value. Example: String name = "David"; This creates a variable called name of type String, and assigns it the value "David". Examples of variable declarations: class MyClass {     public static void main(String[ ] args) {         String name ="David";         int age = ...

Introduction of the Java Programming Language

Welcome to Java! Java is a high level, modern programming language designed in the early 1990s by Sun Microsystems, and currently owned by Oracle. Java is Platform Independent, which means that you only need to write the program once to be able to run it on a number of different platforms! Java is portable, robust, and dynamic, with the ability to fit the needs of virtually any type of application. More than 3 billion devices run Java. Java is used to develop apps for Google's Android OS, various Desktop Applications, such as media players, antivirus programs, Web Applications, Enterprise Applications (i.e. banking), and many more!