본문 바로가기

개발기술

(59)
Java 범용 library java.math packageBigInteger, BigDecimal::  Represents arbitrary-precision integers with no upper or lower boundsConstructorBigInteger(String val/integer): Creates a BigInteger instance from a string representation of an integer.BigDecimal(String val/double val): Creates a BigDecimal instance from a double value.Operations:add(BigInteger val), subtract(BigInteger val), multiply(BigInteger val), d..
데이터베이스 환경구축 (Maria DB 초기설정, JDBC사용,JPA설정) 데이터베이스왜 사용하는가?데이터는 엑셀이나 파일시스템으로도 관리할 수 있지만, 1. 데이터의 동시성(웹의 특성상 복수의 사용자가 데이터를 저장하는 일이 발생)으로 인한 보안문제나 데이터 안정성의 문제도 있을 것임. 2. 데이터의 종속성(응용프로그램에 따라서 데이터가 변해야함), 3. 데이터의 중복성(동일한 데이터가 다른 위치의 여러파일에 존재하여 공간낭비가능)의 단점으로 데이터베이스의 도입이 필요하다.데이터베이스는 파일시스템과 같이 물리적 위치에 따라 참조하는 것이 아니라 데이터 값을 사용하여 조건을 제시하면 이에 해당하는 데이터를 찾을 수있다데이터베이스관리시스템DBMS : 데이터베이스를 운영하고 관리하는 소프트웨어정형화된 데이터를 관리하는 RDBMS, 비정형 데이터를 관리하는 NoSQL이 존재한다.오라..
Java 코딩구현기본 - 클래스,다형성,객체지향 PSVM (String[] args)로 알아보는 메소드`main` 메서드라 한다.다. 자바는 `main(String[] args)` 메서드를 찾아서 프로그램을 시작한다. public:  when your program starts, the Java Virtual Machine (JVM) needs to invoke this method from outside the class that defines it.static: The main method is static because it needs to be invoked by the JVM without creating an instance of the class. main: This is the name of the method that the JVM l..
Java 코딩구현기초 - 연산자/조건반복문/예외처리 예외처리예외 처리(Exception Handling) 는 프로그램 실행 중에 발생할 수 있는 예외적인 상황을 적절하게 처리하기 위한 프로그래밍 기법입니다.  1. 예외 처리 메커니즘throw: 예외를 강제로 발생시키는 키워드입니다. 시스템 오류가 아닌 상황이더라도, 비즈니스로직이나 데이터 상의 오류상황을 강제로 발생시켜 예외를 강제로 생성합니다.throws: 메서드 선언 시 사용하여 해당 메서드 내에서 예외를 직접 처리하지 않고 호출자에게 예외 처리를 위임한다는 의미입니다. 이를 통해 메서드 사용자는 지정된 예외를 반드시 처리해야 합니다.try-catch : 던져진 exception을 해당 scope 내에서 코드로 받아서 처리를 진행함.try-catch-final : try catch 구문과 상관없이 마..
프로그래밍 언어 특징비교분석 Typing SystemPython is dynamically typed, meaning you don’t need to declare the type of variable explicitly; the interpreter infers the type at runtime.Java is statically typed, where you must explicitly declare the type of every variable, making it more strict in terms of type checks before code execution.PerformanceJava is generally faster than Python as Java bytecode is compiled to native mac..
Java 코딩 구현 - 개발환경설정 자바의 특징 : "Programmers Write Once, Run Anywhere(WORA)" 이는, JVM이라는 Java 가상머신 위에서 동작하기 때문에 가능하다. 가상머신이란 프로그램의 실행하기 위해 물리적 머신과 유사한 머신을 소프트웨어로 구현한 것임. JVM의 역할은 자바 애플리케이션을 클래스 로더를 통해 읽어 들여 자바 API와 함께 실행하는 것. JVM은 JAVA와 OS사이에서 중개자 역할을 수행. JAVA가 OS에 구애받지 않고 재사용을 가능하도록 함. 메모리관리, Garbage collection을 수행함. Java의 장점- 간결한 객체지향 언어- Garbage Collection을 통한 메모리 관리- 플랫폼에 종속적이지 않고, 한번 컴파일 된 프로그램은 어느 운영체제나 환경에서 동일하게..
Command-Line Instructions(CLI) Windows EnvironmentWindow CLIpip install package_name : the Python package installer, to install a Python package (library)python my_script.py : runs a Python script (my_script.py in this case) using the Python interpreter.python -m venv new_environment : run a python module called venv to run virtual environment called new_environmentdir - Lists the files and directories in the directory.cd pat..
알고리즘 알고리즘 학습법  수학공부하듯이 이해와 암기를 병행해야한다. 어떤 개념의 논리와 증명을 이해했다면 그 개념을 활용하는 규칙을 외우고, 공식을 외운 상태에서 바로 꺼내어 쓸 수 있어야 응용문제를 풀수 있다. 이차방정식 근의 공식을 매번 유도하여 사용하는 것이 아니라 외워서 사용하듯이. 외우는 것이 이해하는 것만큼 중요하다. 정렬 SortingSelection Sortrepeatedly selecting the smallest (or largest, depending on the sorting order) element from the unsorted portion of the array and moving it to the beginning of the sorted portion. O(n^2)Bubble ..