Programming Lang
-
[CS] Compiler BasicProgramming Lang/Compiler 2023. 6. 28. 23:39
컴파일러 란?언어를 번역한다 = 번역기 컴파일러(번역기)의 종류원시프로그램 -> 번역기 -> 목적프로그램어셈블리어 -> 어셈블러 -> 기계어고급언어 -> 컴파일러 -> 저급언어C, C++, Java …고급언어 -> 인터프리터 -> 실행결과Python, Javascript …고급언어 -> 프리프로세서 -> 고급언어Typescript … 컴파일러(Compiler) 기법번역 후 실행효율적C, C++, Java 등 인터프리터(Interpreter) 기법번역과 동시에 실행융통성Python, Javascript, LISP 등 컴파일러의 논리적 구조 6단계1. 어휘분석 (Lexical Analysis = Scan)어휘를 토큰으로 변환 의미있는..
-
[Java] Retention PolicyProgramming Lang/└ Deep Java 2023. 1. 5. 01:34
Retention Policy 란? 컴파일이 되었을 때, 바이트 코드(byte code)로 만들어주는 범위를 지정해주는 정책이다. 이 정책은 enum 으로 등록되어있고, 3가지의 property 를 가진다. 여기서 용어 주의 !! byte code : 클래스(.class) 파일. Java Complier 가 OS 관계 없이 실행시킬 수 있도록 변환시킨 코드. binary code : JIT Complier 가 컴퓨터가 읽을 수 있도록 변환시킨 기계코드. public enum RetentionPolicy { /** * Annotations are to be discarded by the compiler. */ SOURCE, /** * Annotations are to be recorded in the cl..
-
[Java] Polymorphism (작성중입니다)Programming Lang/Java 2022. 9. 11. 00:45
다형성이란? polymorphism (다형성) a word or phrase that is used with another word or phrase to limit or add to its meaning 그 의미를 제한하거나 더하기 위해 다른 단어나 구와 함께 사용되는 단어나 구 다형성 List list = new ArrayList(); Map map = new HashMap(); 다른 타입으로 객체 생성 조상클래스 타입의 참조변수로 자손클래스의 인스턴스를 참조할 수 있는 것 다형성의 조건 1. 상속 관계일 것 class AirConditional {} class SmartTv extends Tv{ } class Tv { } class Main { public static void main(String..
-
[Java] Package, ModifierProgramming Lang/Java 2022. 9. 10. 02:45
제어자란? package (패키지) related group of things when they are offered together as a single unit 단일 단위로 함께 제공될 때 관련된 사물 그룹 modifier (수식어, 제어자) a word or phrase that is used with another word or phrase to limit or add to its meaning 그 의미를 제한하거나 더하기 위해 다른 단어나 구와 함께 사용되는 단어나 구 패키지 package com.practice; 소스의 가장 첫 줄에 있어야만 한다. 파일 하나에 반드시 하나만 존재해야 한다. 파일이 위치한 폴더명과 같아야 한다. 예약어를 사용할 수 없다. import import java.ut..
-
[Java] Inheritance, OverridingProgramming Lang/Java 2022. 9. 9. 02:02
상속이란? inheritance (상속) a physical or mental characteristic inherited from your parents, or the process by which this happens 부모로부터 물려받은 신체적 또는 정신적 특성, 또는 이것이 일어나는 과정 overriding (오버라이딩) to take control over something, especially in order to change the way it operates 특히 운영 방식을 바꾸기 위해 무언가를 통제하는 것 a device that changes the control of a machine or system in special situations, especially from automa..
-
[Java] Class, Instance, ConstructorProgramming Lang/Java 2022. 9. 7. 02:44
클래스란? object (객체) a thing that can be seen, held, or touched, usually not a living thing 보통 생물이 아닌, 보이고, 잡히고, 만질 수 있는 것 class (클래스) a group of related plants or animals, in the general classification of plants and animals 동식물의 일반적인 분류에서 관련 식물 또는 동물의 그룹 instance (인스턴스) a particular situation, event, or fact, especially an example of something that happens generally 특정한 상황, 사건 또는 사실, 특히 일반적으로 일어나는..
-
[Java] Variable, Method, JVMProgramming Lang/Java 2022. 9. 5. 00:13
변수와 메서드란? variable (변수) something that is variable method (메서드, 방법) a procedure or process for attaining an object - a way, technique, or process of or for doing something ETC static 스태틱 (정적인) : standing or fixed in one place instance : 어떤 집합에 대해서, 그 집합의 개별적인 요소 class : 수업, 과목, 반, 학급 등 변수의 종류 클래스 변수 인스턴스 변수 지역 변수 변수의 선언된 위치가 중요! class VarMethod { void main(String[] args) { Variables.cv = 0; //Va..
-
[Java] String ArrayProgramming Lang/Java 2022. 8. 28. 02:52
스트링 배열이란? String a set of objects joined together in a row on a single rope or thread 밧줄이나 실 하나로 일렬로 연결된 한 세트의 물체 a usually short piece of text consisting of letters, numbers, or symbols that is used in computer processes such as searching through large amounts of information 대개 많은 양의 정보를 검색하는 것과 같은 컴퓨터 프로세스에서 사용되는 문자, 숫자 또는 기호로 구성된 짧은 텍스트 조각 Array a large group of things, especially one that ha..