PowerPoint 프레젠테이션

Similar documents
PowerPoint 프레젠테이션

1

자바 프로그래밍

PowerPoint 프레젠테이션

05-class.key

02 C h a p t e r Java

PowerPoint 프레젠테이션

Design Issues

chap10.PDF

Runtime Data Areas 엑셈컨설팅본부 /APM 팀임대호 Runtime Data Area 구조 Runtime Data Area 는 JVM 이프로그램을수행하기위해할당받는메모리영역이라고할수있다. 실제 WAS 성능문제에직면했을때, 대부분의문제점은 Runtime Da

ch09

비긴쿡-자바 00앞부속

JVM 메모리구조

untitled

PowerPoint Presentation

<4D F736F F F696E74202D20C1A63038C0E520C5ACB7A1BDBABFCD20B0B4C3BC4928B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

C# Programming Guide - Types

Microsoft PowerPoint - Lect04.pptx

5장.key

Microsoft Word - EEL2 Lab5 예외처리와 스레드.docx

교육자료

12-file.key

초보자를 위한 자바 2 21일 완성 - 최신개정판

rmi_박준용_final.PDF

03-JAVA Syntax(2).PDF

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

01-OOPConcepts(2).PDF

Microsoft PowerPoint 자바-기본문법(Ch2).pptx

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

PowerPoint Presentation

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

q 이장에서다룰내용 1 객체지향프로그래밍의이해 2 객체지향언어 : 자바 2

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class

슬라이드 1

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

Interstage5 SOAP서비스 설정 가이드

07 자바의 다양한 클래스.key

Something that can be seen, touched or otherwise sensed

slide2

(8) getpi() 함수는정적함수이므로 main() 에서호출할수있다. (9) class Circle private double radius; static final double PI= ; // PI 이름으로 로초기화된정적상수 public

Microsoft PowerPoint - Java7.pptx

PowerPoint Presentation

PowerPoint Presentation

PowerPoint Presentation

Java Programing Environment

Microsoft PowerPoint - java1 [호환 모드]

PowerPoint Presentation

K&R2 Reference Manual 번역본

Microsoft Word - FunctionCall

Microsoft Word - EEL2 Lab4.docx

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍

Java ...

PowerPoint Presentation

OOP 소개

Deok9_Exploit Technique

신림프로그래머_클린코드.key

PowerPoint Presentation

Microsoft Word - ExecutionStack

PowerPoint Presentation

Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 3. FindBugs ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 4. ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ

예제 2) Test.java class A intvar= 10; void method() class B extends A intvar= 20; 1"); void method() 2"); void method1() public class Test 3"); args) A

No Slide Title

PowerPoint Presentation

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

Spring Boot/JDBC JdbcTemplate/CRUD 예제

(Microsoft PowerPoint - java1-lecture11.ppt [\310\243\310\257 \270\360\265\345])

gnu-lee-oop-kor-lec06-3-chap7

6주차.key

자바GUI실전프로그래밍2_장대원.PDF

JAVA PROGRAMMING 실습 08.다형성

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer....

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Chap12

Microsoft PowerPoint - 04-UDP Programming.ppt

3ÆÄÆ®-14

* Factory class for query and DML clause creation * tiwe * */ public class JPAQueryFactory implements JPQLQueryFactory private f

PowerPoint Presentation

PowerPoint 프레젠테이션

Java

PowerPoint Presentation

No Slide Title

Microsoft Word - java19-1-midterm-answer.doc

Microsoft PowerPoint - 2강

SIGPLwinterschool2012

제 1 강 희망의 땅, 알고리즘

Secure Programming Lecture1 : Introduction

Microsoft PowerPoint - lec12 [호환 모드]

PowerPoint 프레젠테이션

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

UML

TEST BANK & SOLUTION

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

3. 1 포인터란 3. 2 포인터변수의선언과사용 3. 3 다차원포인터변수의선언과사용 3. 4 주소의가감산 3. 5 함수포인터

11강-힙정렬.ppt

JAVA PROGRAMMING 실습 02. 표준 입출력

Microsoft PowerPoint - 8ÀÏ°_Æ÷ÀÎÅÍ.ppt

MasoJava4_Dongbin.PDF

PowerPoint Presentation

자바-11장N'1-502

Transcription:

@ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1

@ & 1 (Real World) (Software World)

@ &.. () ()

@ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

@ & 3 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation class Account{ double money; getmoney(){} deposit(){} withdraw(){} } Account acc= new Account()

@ & 4 Real World (Software World) Abstraction Instantiation class Account{ double balance; getbalance(){} deposit(double a){} withdraw(double b){} }

@ 1.. Behavior Attribute

@ 2 Class Member field Method (Constructor) Method A Method B Field (data) Method (data)

@ Class Class [ classmodifier ] class ClassName //header { // body /* field */ } /* method */ classmodifier : public, friend, final, abstract

@ (1)

@ (2)

@

@ Instantiation Heap Account acc1=new Account(); Account acc2=new Account(); Account acc1=new Account(); Static Class Stack Reference variable Account acc1=new Account(); Instance Heap () ( ) acc3 acc2 acc1 (,)

@ Instantiation 2 Static Stack Heap Class car3 car2 car1 Car car1=new Car(); Car car2=new Car(); Car car3=new Car();

@ Method 200 argument return logic public int coffee( int money ) { //logic if( money>=1000 ) return 5; // 5 else if( money>=800 ) return 4; // 4 else - - - ; } int cups = vendingmachine.coffee( 800 ); 200 cups : 4

@ static & non static static method member method static field member field method field method method Class Heap (static) memory Heap Heap Stack

@ 3,

@ 4 : Car :,, :,, public class Car { /** * */ private int speed = 0; /** * -90 90 0 */ private int direction = 0; /** * Car default */ public Car(){} //constructor /** * 5Km/hr */ public void speedup() { speed+=5; }

@ 5 : Car :,, :,, /** 5Km/hr */ public void speeddown() { speed-=5; } /** * (Km/hr) * @return int */ public int curspeed(){ return speed; } /** *. * @param dir */ public void turndirect(int dir) { direction+=dir; } /** * (0:, -90, 90 ) * @return int */ public int curdirect(){ return speed; } }

@ javadoc javadoc use private ClassName.java /** *. * @param dir */ public void turndirect(int dir) { direction+=dir; } /** * (0:, -90, 90 ) * @return int */ public int curdirect(){ return speed; }

@ JVM 1 JVM Pc Register Frame Register Optop Register Vars Register Method Area (Static,Class) Heap Literal Pool Native Method Stack

@ JVM 2 Static(Class, Method) Stack Heap instance ClassLoad Account Static Variable field,methods AccountMain Static Variable field,methods Heap Literal Pool Methods byte code Main Thread Thread

@ JVM 3 Static Stack Heap Static, Class static, () ( ) acc3 acc2 acc1 (,) Stack reference, referencing Heap

@ reference pointer Static Stack () Heap a2 a1 Account a1=new Account(); Account a2=new Account();

@ 1 public class Accounts { private double money=500; // public Accounts ( double money ){ // this.money=money;} public double getmoney(){ // return money;} public void withdraw(double amount){ // if((amount>0)&&(money-amount>=0)){ money-=amount;}} public void deposit(double amount){ // if(amount>0){ money+=amount;}} }

@ 2 public class AccountMain { public static void main( String[] args) { Accounts acc1=new Accounts(1000); // acc1.deposit(3000); // acc1.deposit(2000); // acc1.withdraw(500);// System.out.println(acc1.getMoney());// } }

@ 3

@ Stack Heap Field money=0 money=0 Field money=0 money=500 acc1 0xa12 public class Account{ private double money=500; public Account(double money){ this.money=money;} ConstructorField 0xa12 money=0 money=1000 Reference Variable money=0 money=1000

@ JVM 4 frame 0xa12 Stack Heap Stack Heap amount acc1 this 0xa12 money= 1000+amount acc1 0xa12 money=4000 Accounts acc1=new Accounts(1000); acc1.deposit(3000); method stack amount, this, frame

@ Garbage Collection Static Stack Heap Static Stack Heap ( ) ( ) a4 a3 a2 a4 a1 a1 a2=null; // a2 Garbage Collection a3=null; //a3 Garbage Collection

@ Type Type Primitive Object, Reference Wrap Wraper class Student stu3 stu2 stu1

@ Airplane,, 1

@ Airplane,, 2

@ Airplane,, 3

@ Airplane,, 4

@ Airplane,, 5

@ Airplane,, 6

@ Airplane,, 7

@ Airplane,, 8

@ Airplane,, 9

@ Airplane,, 10

@ Airplane,, 11

@ Computor Systems Computer MotherBoard Monitor Body KeyBoard/Mouse VGACard CPU SoundCard

@ 1

@ 2

@ 3 public class ComputerMain { public static void main(string[] args) { Computer com=new Computer(); System.out.println(" : "+com.name); System.out.println(" : "+com.monitor.size); System.out.println("CPU : "+com.motherboard.cpu.speed); System.out.println (" : "+com.motherboard.soundcard.company); System.out.println("VGA : "+com.motherboard.vgacard.color); } }

@ Array

@ Array 0 1 2 3 4 indexes elements num stu

@ Array Declaration/Define stus nums ss a stu num

@ Array Initialization stus nums ss a stu num

@ Array- 1

@ Array-

@ Array-

@ Array- 1

@ Array-

@ Array-

@ Array-

@ Array- 5

@,, (,)