Giter VIP home page Giter VIP logo

learn-java's Introduction


/Java_programming_language_logo.svg

Learning Java

Despite taking an AP class on Java, I did not do very well, as I didn't like the language very much at the time, and still don't like it too much. Nonetheless, I still did learn some Java. This document will go over my knowledge of the Java programming language.

Hello World in Java

A standard Hello World program in Java. I memorized the class and System.out.println lines, but I still haven't memorized the public static void portion.

public class java {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

Originally, I got stumped in class in the beginning, as I couldn't figure out if the l in println was a capital i, or a 1.

Operators in Java

Section coming soon

Classes in Java

I have to give credit to one of my friends for a joke in this example, there was a funny joke he made when we were going over superclasses, and he came up with the term super duper mega class in his answer. I did not come up with this one.

public class superDuperMegaClass {
    public static void main(String[] args) {
        System.out.println("Welcome back to Java class");
    }
}

Functions in Java

public static void aFunctionalFunction() {
	System.out.println("This function has functioned its functioning function.");
}
return aFunctionalFunction();

Importing in Java

Importing just the Java utilities (scanner) this will also be used in the next example.

import java.util.scanner();

Importing ALL Java libraries (not always recommended)

import *

Input scanners in Java

I never nailed this one down, but it was deemed very important to me.

import java.util.scanner();
// Blank for now

I can't do the rest of this right now.

/!\ This example has not been tested yet, and may not work

Garbage collection in Java

Section coming soon

Return in Java

Section coming soon

Break keyword in Java

break;

To this day, I am still not entirely sure what the break keyword does, but most languages support it.

/!\ This example has not been tested yet, and may not work

Tuples in Java

Section coming soon

Lists in Java

Section coming soon

If statements in Java

Section coming soon

Else statements in Java

Section coming soon

For loops in Java

Section coming soon

While loops in Java

Section coming soon

Booleans in Java

Section coming soon

Functional card game in Java

Section coming soon

Image manipulation in Java

Section coming soon

Jar files

Section coming soon

Comments in Java

Comments in Java are identical to comments in C, JavaScrift, Google Go, C++, etc..

// This is a single line comment
/* This
is a multiline
comment */
/* Multi-line comments
* can also
* be written
* like this */

Other knowledge of Java

  1. Java can be used as a gateway language to C#, C, C++, Google Go, and other languages

  2. Java is not to be confused with JavaScript, although JavaScript was influenced by Java. The same goes for JScript, JavaScript++, and other JavaScript-like languages

  3. Java was originally developed by Sun Microsystems in an attempt to create a better TV remote.

  4. Java is now owned by Oracle

  5. Java was originally named Oak, after an Oak tree outside the developers office.

  6. Eclipse is an IDE I learned Java in.

  7. Java programs are very verbose (long) compared to languages like Python

  8. Java is a curly bracket and semicolon language

  9. Javas syntax is very similar to the syntax of C# and sometimes C# is jokingly called Microsoft Java

  10. Java's main file format is .java but it uses many other file formats, such as .gradle .jar `.

  11. Jar files are Java Archive files

  12. The popular game Minecraft was originally written in Java. The Microsoft version is written in C++

  13. Java can be used as an applet for web browsers

  14. Javas mascot is named Duke

  15. Java has its own virtual machine, known as the JVM (or Java Virtual Machine) for executing Java source code

  16. No other knowledge of the Java programming language at the moment.


Developer notes

This list was abandoned for a few months (not even being looked at from 2022 January 14th to 2022 April 18th) I have come back to it on 2022, April 19th, due to renewed interest in programming language knowledge repositories. I intend to keep as much of the original structure as possible, while also adding new knowledge. This is a legacy document, and was written differently than how I have been writing these types lately. Legacy parts (such as variables in <language> sections) will remain unchanged, while improvements will take place (notably: Adding new other knowledge of Java adding the developer notes section, referencing the Java logo, adding sources, adding a file version timestamp, changing all level 4 headers to level 2, and changing the title header from level 3 to level 1)

When this list goes public, it will still be incomplete, and will not be regarded as a complete entry.


File version: 1 (2022, Tuesday, April 19th at 7:40 pm PST) - Prepared 1 day early


learn-java's People

Contributors

seanpm2001 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

seanwallawalla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.