Skip to content

Commit 0d5dedb

Browse files
committed
Add docs/introduction page
1 parent c0f6958 commit 0d5dedb

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed

src/pages/docs/introduction.mdx

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
title: Introduction
3+
description: A guick intro to Java programming language
4+
---
5+
6+
import { Heading } from '@/components/Heading'
7+
import { List, ListItemGood,ListItemBad } from '@/components/List'
8+
import Link from 'next/link'
9+
10+
**Java** is a powerful **general-purpose programming language**. It is used to **develop desktop and mobile applications, big data processing, embedded systems**, and so on. According to **Oracle**, the company that owns **Java**, **Java runs on 3 billion devices worldwide**, which makes Java one of the most popular programming languages.
11+
12+
To get started with Java programming, visit [Java Tutorials](/programs/introduction).
13+
14+
## Features of Java Programming
15+
16+
17+
#### 1. Java is platform-independent
18+
19+
Java was built with the philosophy of "write once, run anywhere" (WORA). The Java code you write on one platform (operating system) will run on other platforms with no modification.
20+
21+
#### 2. An object-oriented Language
22+
23+
The object-oriented approach is one of the popular programming styles. In object-oriented programming, a complex problem is divided into smaller sets by creating objects. This makes Java code reusable, has design benefits and makes code easier to maintain.
24+
25+
#### 3. Java is fast
26+
27+
The earlier version of Java was criticized for being slow. However, the new version of Java is one of the fastest programming languages.
28+
29+
A well-optimized Java code is nearly as fast as lower-level languages like C/C++ and much faster than Python, PHP, etc.
30+
31+
#### 4. Java is Robust
32+
33+
Robust simply means strong. Java is robust because:
34+
35+
It uses strong memory management.
36+
37+
- There is a lack of pointers that avoids security problems.
38+
- There is automatic garbage collection in java which runs on the Java Virtual Machine to get rid of objects which are not being used by a Java application anymore.
39+
- There are exception handling and the type checking mechanism in Java. All these points make Java robust.
40+
41+
#### 5. Java is secure
42+
43+
Some of the high-level features for security that Java handles are:
44+
45+
- provides a secure platform for developing and running applications
46+
- automatic memory management reduces memory corruption and vulnerabilities
47+
48+
#### 6. Large Standard Library
49+
50+
One of the reasons why Java is widely used is because of the availability of a huge standard library. The Java environment has hundreds of classes and methods under different packages to help software developers like us. For example,
51+
52+
- `java.lang` - for advanced features of strings, arrays, etc
53+
- `java.util` - for data structures, regular expressions, date and time functions, etc
54+
- `java.io` - for file i/o, exception handling, etc
55+
56+
---
57+
58+
## Applications of Java Programming
59+
60+
According to Oracle, the company that owns Java, Java runs on 3 billion devices worldwide, which makes Java one of the most popular programming languages.
61+
62+
#### 1. Android apps
63+
64+
Java programming language using Android SDK (Software Development Kit) is usually used for developing Android apps.
65+
66+
#### 2. Web apps
67+
68+
Java is used to create Web applications through Servlets, Struts or JSPs. Some of the popular web applications written in Java are Google.com, Facebook.com, eBay.com, LinkedIn.com, etc.
69+
70+
#### 3. Big Data Processing
71+
72+
You can use the popular software framework like Hadoop (which is written in Java) to process Big Data.
73+
74+
#### 4. Embedded Devices
75+
76+
Oracle's Java Embedded technologies provide platform and runtime for billions of embedded devices like televisions, SIM cards, Blu-ray Disc players, etc.
77+
78+
Besides these applications, Java is also used for game development, scientific applications (like natural language processing), and many others.
79+
80+
---
81+
82+
## How you can learn to code in Java?
83+
84+
#### 1. Learn Java from Javaistic
85+
86+
<span className="font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-sky-400 to-indigo-500">Javaistic</span> offers a complete series of easy to follow Java tutorials along with suitable examples. These tutorials are targeted for absolute beginners with no prior knowledge of Java programming language.
87+
88+
#### 2. Learn Java from Books
89+
90+
It is always a good idea to learn to program from books. You will get the big picture of programming concepts in the book which you may not find elsewhere.
91+
92+
Here are some books we personally recommend.
93+
94+
- [**Java: The Complete Reference, Ninth Edition**](http://amzn.to/2mAdN34) - covers everything about Java, including syntax, keywords, and so on
95+
- [**Thinking in Java (4th Edition)**](http://amzn.to/2mkvCCK) - best if you are switching from other programming languages
96+
- [**Java 8 Pocket Guide: Instant Help for Java Programmers**](http://amzn.to/2mEszGG) - best to get quick answers
97+
98+
#### 3. Learn from Official Java Documentation
99+
100+
Oracle, the company that owns Java, provides quality Java documentation. The official documentation is continuously updated. However, it may not be the easiest of tutorials to follow for beginners.
101+
102+
## Java Programming Best Practices
103+
104+
You must be eager to learn Java by now. However, here are some tips and best practices to follow before you learn Java.
105+
106+
<List>
107+
<ListItemBad> <b>Don't read Java tutorials and examples like a novel</b> : The only way to get better in programming is by writing a lot of code.</ListItemBad>
108+
<ListItemGood> <b>Learn Java language the right way</b> : If you are switching from another programming language (let's say C#), don't write C# style code in Java. Also, check this article on <a href="http://www.ibm.com/developerworks/library/j-perry-writing-good-java-code/index.html">How to write good Java code?</a></ListItemGood>
109+
<ListItemGood> <b>Join Java communities</b>: Once you get the hang of writing simple Java programs, join Java communities and forums. Then, try to solve other programmer's Java problems. It's a good way to expand your Java knowledge. Also, you can get help when you are stuck.</ListItemGood>
110+
</List>
111+
112+
## Final Words
113+
114+
You cannot go wrong with learning Java. Its wide range of applications makes it the language of opportunities and possibilities.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy