
Review the basics of Java.자바 기초를 복습한다. A method is a block of code which only runs when it is called.메소드는 오직 호출될 때만 실행된다.You can pass data, known a

It’s used to print formatted strings using various format specifiers.‘Format specifiers’를 사용해 formatted된 String을 출력하는 데 사용된다.printf() method is not on

Objects Java objects are very similar to the objects we can observe in the real world. A cat, a lighter, a pen, or a car are all objects. 자바 오브젝트는 →

Review the basics of Java.A variable that is specified outside the function or block of the code is known as Global Variable.Global Variables(전역변수)는 함

Main classFood classMain ClassUnderstanding the flow of Java code, which I still feel I am lacking.아직 내가 부족한 부분이라고 느끼는 자바 코드의 흐름을 이해하기.car1, car2 Inst

Method Overriding (메소드 오버라이딩) We can create a simple example to understand this concept. In this example, I have two classes i.e., Parent class has d

Before studying Java further, it's important to understand how Java is executed.Java를 더 공부하기 전에, 애초에 Java가 어떻게 실행되는 지 알기위함.We need to understand what

abstractkeyword is a non-access modifier, used for classes and methods:Abstract class(추상 클래스): is a restricted class that cannot be used to create obj

캡슐화는 객체지향의 4가지 개념 중 하나이다. 자바의 Encapsulation(캡슐화)는 데이터(변수) ↔ 데이터에 작용하는 코드(메소드)를 하나의 단위로 묶는 메커니즘이다.캡슐화에서 클래스의 변수는 다른 클래스로부터 숨겨진다. 그래서, 이를 데이터 은닉이라고도 한다.

캡슐화는 객체지향의 4가지 개념 중 하나이다. 자바의 Encapsulation(캡슐화)는 데이터(변수) ↔ 데이터에 작용하는 코드(메소드)를 하나의 단위로 묶는 메커니즘이다.캡슐화에서 클래스의 변수는 다른 클래스로부터 숨겨진다. 그래서, 이를 데이터 은닉이라고도 한다.

Polymorphism (다형성) Polymorphism occurs when there is inheritance, i.e., many classes are related. 다형성은 상속이 있을 때 발생하며 많은 클래스들이 관련되어 있다. Inheritance i

1. 정적 멤버와 Static Static은 정적, 즉 ‘고정된’ 이란 의미이다. 정적 멤버는 클래스에 고정된 멤버로서 객체를 생성하지 않고 사용할 수 있는 필드(정적필드)와 메소드(정적 메소드)를 의미한다. 1.2. The static Fields (Or Class Variables) 정적 멤버, 클래스 변수 정적 필드와 정적 메소드를 선언하려면 →...

누군가 시키는 대로 받아쓰는 건 내 것이 아니다. 스프링 공부 전 Servlet + Java + DB 연동 다시 테스트 해보기. > 01. Overview A database connection is built by combining Servlet and JDBC MySQL. Servlet, JDBC MySQL을 결합해 데이터 베이스와 연결한다. 0...

Map(맵) Interface 대응관계를 쉽게 표현할 수 있게 해주는 자료형이다. > 맵은 다른 언어에도 있는 자료형으로, associative array 또는 hash 라고도 불린다. > 맵은 사전과 비슷한데, 예를 들어 People 이란 단어에는 사람, bas

2023년 12월 25일 2024년 1월 1일 자바의 가비지 콜렉션 / Garbage Collection in Java 자바의 가비지 콜렉션은 자바의 메모리 관리 기법 중 하나로, 동적으로 할당된 메모리 영역 중 사용되지 않는 영역을 자동적으로 회수하고 관리하는 프로세스이다. > C, C++ 에서는 개발자가 직접 객체의 생성과 파괴를 해줘야한다. 만...