-
Notifications
You must be signed in to change notification settings - Fork 0
/
Page3.html
73 lines (72 loc) · 2.89 KB
/
Page3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="Styles.css">
<title>Java-Tutorial</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="HomePage.html">Home</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="page1.html">C-Tutorial</a>
</li>
<li class="nav-item">
<a class="nav-link" href="page2.html">Cpp-Tutorial</a>
</li>
<li class="nav-item">
<a class="nav-link" href="page3.html">Java-Tutorial</a>
</li>
<li class="nav-item">
<a class="nav-link" href="page4.html">Python-Tutorial</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<h1>JAVA</h1>
<p>Java is a popular programming language, created in 1995.It is owned by Oracle, and more than 3 billion devices run Java.
It is used for:
<ul type="disc">
<li>Mobile applications (specially Android apps)</li>
<li>Desktop applications</li>
<li>Web applications</li>
<li> Web servers and application servers</li>
<li> Games</li>
</ul>
<h2>Java Syntax</h2>
<p>We created a Java file called Main.java, and we used the following code to print "Hello World" to the screen:</p>
<pre><code>public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}</code></pre>
<h1>Java Data Types</h1>
<p>Data types are divided into two groups:</p>
<ul type="">
<li>Primitive data types - includes byte, short, int, long, float, double, boolean and char</li>
<li>Non-primitive data types - such as String, Arrays and Classes (you will learn more about these in a later chapter)</li>
</ul>
<b>
Primitive data types
</b>
<p>
A primitive data type specifies the size and type of variable values, and it has no additional methods.There are eight primitive data types in Java:
</p>
<img src="https://logicmojo.com/assets/dist/new_pages/images/Primitive.png" alt="DATA TYPES">
<b>Non-primitive data types</b>
<p>Non-primitive data types are called reference types because they refer to objects.</p>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
</body>
</html>