Git Product home page Git Product logo

java-reference-repo's Introduction

Java I Reference Repo

A reference repo that illustrates the following:

  • Variables
  • Scope
  • If Else
  • Switch
  • Loops
  • Equality/Identity
  • Functions
  • Stdin/Stdout
  • Optionals
  • Enums
  • Constants
  • Precedence

Getting Started

  • Clone this repo
  • Open the pom.xml file "Open as Project"
  • Navigate to the Main class, click on the green arrow to run the application

Videos

Links

Overview

Every program is a set of instructions, whether it’s to add two numbers or send a request over the Internet. Compilers and interpreters take human-readable code and convert it to computer-readable machine code.

The World of Twos

  • Two types of languages:
    • Declarative (SQL)
    • Imperative (JavaScript, Java)
  • Two types of programs:
    • Compiled (Java)
    • Interpreted (JavaScript)
  • Two types of strength:
    • Strongly Typed (No implicit conversions allowed) (Java, TypeScript)
    • Weekly Type (implicit conversions allowed) (JavaScript)
  • Two types of typing:
    • Statically Typed (Checked at compile time) (Java)
    • Dynamically Typed (Checked at run time) (JavaScript)
  • Two types of levels:
    • One (+5v, +3v)
    • Zero (0 volts)

Java I

  • There are two types in Java: Primitvie Types and Reference Types:
    • 8 Primitive Types (Value Types)
      • Stored on the stack
    • Reference types are objects (classes)
      • Stored in heap memory, primitives in the class are stored in the heap
  • Lists/Arrays are zero based (first item is zero)
  • Every Java app must have one static main method

Primitives

  • byte (Range: -128, 127)
  • short (Range: -32,768, 32,767)
  • int
  • long
  • float
  • double
  • boolean
  • char
  • Primitve Wrapper Objects:
    • Byte
    • Short
    • Integer
    • Long
    • Float
    • Double
    • Boolean
    • Character

java-reference-repo's People

Stargazers

Parham Saniei avatar

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.