Java Tutorial

Oracle Java Tutorial
http://docs.oracle.com/javase/tutorial/tutorialLearningPaths.html

Dotnetperls Java Tutorial
http://www.dotnetperls.com/java

Java2s Java Tutorial
http://www.java2s.com/Tutorial/Java/CatalogJava.htm

생활코딩 동영상 Java Tutorial
https://opentutorials.org/module/516/4551
https://opentutorials.org/course/1223

Tutorialspoint Java Tutorial
https://www.tutorialspoint.com/java/

JavaTPoint Java Tutorial
https://www.javatpoint.com/java-tutorial

Java Tutorial: Learn Java Programming with examples
https://beginnersbook.com/java-tutorial-for-beginners-with-examples/

Lab0

Lab0 (Due by 3/13)

HelloWorld 프로그램을 작성한다.

JDK 설치

IDE 설치

환경설정

이클립스를 사용한 자바 프로그램 작성

프로젝트 디렉토리(Lab0) 안에 보고서 (1~2장정도 – 장수 제한 없음)를 넣고 Lab0_학번_이름.zip 압축한 후 e-learning(http://lms.dankook.ac.kr/index.jsp)으로 제출

보고서는 프린트해서 수업시간전에 제출

Java Overview

  • Identifier

naming conventions

  • Variables

local vs class variable, instance vs static variable

  • Data Type

primitive vs reference data type

  • Type Conversion

implicit vs explicit type conversion
int <-> String conversion
numeric data type conversion

  • Operator

arithmetic vs relational vs bitwise vs logical vs assignment operator
operator precedence
postfix vs prefix increment/decrement operator

  • Control Statement

if/else, switch, for/foreach, while/do-
while, break/continue

  • Array

Integer Array
Person Array
2D Array
returning an array vs passing an array as parameter

  • Enum

enum data type
enum Operation example
enum Operator, enum Gender, enum Weekday

  • Method

parameter passing (pass-by value – primitive vs reference data type)
swap
method overloading vs overriding

  • Class

Person Class
default/public/protected/private
Static vs Instance Initializer Block
constructor usage guideline
singleton design pattern vs static class
ValueClass instance vs static
BankAccount instance vs static
Person instance vs static
PersonContactTest (has-a PhoneNumber)
ArithmeticCalculator (has-a Value & ArithmeticOperator)

  • Inheritance

BankAccount SavingAccount CheckingAccount class(instance vs static member)
Car Sedan class (default/public/protected/private)
Person Student class (instance vs static method overriding)

  • Polymorphism

Polymorphism vs Method Overriding vs Method Overloading
Abstract Class & Abstract Method & Polymorphism

  • Interface

Comparable & Comparator Interface
Shape Polymorphism with Interface

  • Collections

autoboxing and unboxing
Equals vs Contains
== vs equals vs hashCode vs contains
Array vs ArrayList
Difference between Array and ArrayList

  • Swing

Swing Component
Layout Manager
5 Ways to Implement Event Listener
Event Listener (ChangeListener, KeyListener, ActionListener)
Key & Mouse Motion Listener & Adapter
TemperatureConverter
MetricConverter
AridityIndex
BMICalculator
TripleCalculatorFrame
Custom Component
DrawingPanel
BodyCalculator