Manta Ray's

  • 홈
  • 태그

클래스 1

[JAVA] No enclosing instance of type Class is accessible.

에러 메시지 No enclosing instance of type Class is accessible. Must qualify the allocation with an enclosing instance of type Class (e.g. x.new A() where x is an instance of Class). 원인 static void main 메소드에서 최상위 클래스 선언 없이 내부 public 클래스 생성자를 호출했을 때 발생함. public class Sample { public static void main(String[] args) { A sampleA = new A(); } class A { int a; A(){ this.a = 0; } A(int a){ this.a = a; } publ..

기타/에러처리 2021.09.21
1
더보기
프로필사진

Dreaming about a manta ray can mean that you need to consider the current direction and path of your life.

  • 분류 전체보기 (111)
    • JAVA (52)
      • JAVA (18)
      • Spring (4)
      • DesignPattern (23)
      • Architecture (5)
      • JPA (2)
    • DB (13)
      • SQL (13)
    • 알고리즘 (43)
      • 알고리즘 (16)
      • 코딩테스트 (27)
    • 기타 (3)
      • 면접준비 (0)
      • 스크랩 (0)
      • 에러처리 (2)
      • 잡동사니 (1)

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Tag

행동패턴, 객체지향, 리트코드, 코딩테스트, mysql, 디자인 패턴, 배열, 구조패턴, design pattern, 자바, BFS, 행동 패턴, 정렬, SQL, 디자인패턴, 프로그래머스, java, 그래프, 알고리즘, 경로탐색,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바