Programming Lang/Java
-
[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..
-
[Java] OperatorProgramming Lang/Java 2022. 8. 27. 02:03
연산자란? Operator (연산자) a symbol that does something to a number or quantity in a calculation. For example, in 7 + y, the symbol + is the operator. 계산에서 숫자나 양에 어떤 일을 하는 기호. 예를 들어, 7 + y에서 + 기호는 연산자 이다. ex) + - * / Operand (피연산자) a number or quantity that has something done to it in a calculation. For example, in 7 + y, 7 and y are the operands. 계산에 어떤 영향을 미치는 수 또는 수량. 예를 들어, 7 + y에서 7과 y는 피연산자 이다. ..
-
[Java] Type CastingProgramming Lang/Java 2021. 7. 1. 22:17
형변환이란? Type Casting 높은 온도에서 가열하여 액체로 만들어 형(型)에 부어 굳히는 가공 방법 변수/상수 타입을 다른 타입으로 변환하는 것 형변환 방법 변수 및 리터럴 앞에 괄호 추가 (타입) 피연산자 public class Java_1_Casting { public static void main(String[] args) { //***변수 파트 //1. 숫자 담기 int val = 10; //2. 초기화 val = 0; //3. 임의의 숫자 입력 val = 65; //4. 문자로 형변환 char str = (char) val; //5. 출력 System.out.println("int val : " + val); System.out.println("char str : " + str); } }..