해외생활이야기2017. 8. 27. 14:29

[JOBINTERVIEW]자주 묻는 자바 인터뷰 2 FAQ(Frequently Asked Questions)



자바 잡 인터뷰에서 자주 묻는 질문과 답변 두번째 번역입니다.

Top Java Frequently Asked Questions- 2


51. Are true and false keywords? 

true 및 false 값은 키워드입니까?

The values true and false are not keywords. 

true 및 false 값은 키워드가 아닙니다.


52. What is a void return type? 

무효 반환 유형(void return type)이란 무엇입니까?

A void return type indicates that a method does not return a value after its execution. 

void return type은 메서드 실행 후 값을 반환하지 않음을 나타냅니다.


53. What is the difference between the File and RandomAccessFile classes? 

File과 RandomAccessFile 클래스의 차이점은 무엇입니까?

The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file. 

File 클래스는 로컬 파일 시스템의 파일과 디렉토리를 캡슐화합니다. RandomAccessFile 클래스는 파일의 모든 부분에 포함 된 데이터에 직접 액세스하는 데 필요한 메서드를 제공합니다.


54. Which package is always imported by default? 

기본적(default)로 항상 가져 오는 패키지는 무엇입니까?

The java.lang package is always imported by default in all Java Classes.

java.lang 패키지는 기본적으로 모든 Java 클래스에서 가져옵니다. 


55. What restrictions are placed on method overriding? 

method overriding 재정의에는 어떤 제한이 있습니까?

Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides but it can expand it. The overriding method may not throw any exceptions that are not thrown by the overridden method. 

Overridden methods는 name, argument list 및 return type이 동일해야합니다. 오버라이드 (override)하는 메소드는 오버라이드 (override)하는 메소드의 액세스를 제한하지 않고 확장 할 수 있습니다. 오버라이드 (override)되는 메소드는, 오버라이드 (override) 된 메소드에 의해 슬로우되지 않는 예외를 throw하지 않습니다.


56. Which arithmetic operations can result in the throwing of an ArithmeticException? 

어떤 arithmetic operations이 ArithmeticException을 던질 수 있습니까?

Integer / and % can result in the throwing of an ArithmeticException. 

정수 /와 %는 ArithmeticException을 던질 수 있습니다.


57. What is the ResourceBundle class? 

ResourceBundle 클래스 란 무엇입니까?

The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run. 

ResourceBundle 클래스는, 프로그램의 외관을 실행하고있는 특정의 로케일에 맞추기 위해서, 프로그램에 의해로드 할 수있는 로케일 고유의 리소스를 포함하기 위해서 사용됩니다.


58. What is numeric promotion? 

numeric promotion이란 무엇입니까?

Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required. 

Numeric promotion은 더 작은 숫자 유형을 더 큰 숫자 유형으로 변환하므로 정수 및 부동 소수점 연산이 발생할 수 있습니다. numerical promotion에서는 byte, char 및 short 값이 int 값으로 변환됩니다. 필요한 경우 int 값도 long 값으로 변환됩니다. long 및 float 값은 필요에 따라 double 값으로 변환됩니다.


59. To what value is a variable of the boolean type automatically initialized? 

boolean type의 변수가 자동으로 초기화되는 값은 무엇입니까?

The default value of the boolean type is false. 

boolean type의 기본값(default)은 false입니다.


60. What is the difference between the prefix and postfix forms of the ++ operator? 

++ 연산자의 접두사(prefix)와 접미사(postfix) 형식의 차이점은 무엇입니까?

The prefix form performs the increment operation and returns the value of the increment operation. The postfix form returns the current value to the expression and then performs the increment operation on that value. 

prefix form은 증가 조작을 수행하고 증가 조작의 값을 리턴합니다. postfix form은 현재 값을 표현식으로 리턴 한 다음 해당 값에 대해 증가 조작을 수행합니다.


61. What is the purpose of a statement block? 

statement block의 목적은 무엇입니까?

A statement block is used to organize a sequence of statements as a single statement group. 

statement block은 명령문 시퀀스를 single statement group으로 구성하는 데 사용됩니다.


62. What is the difference between an if statement and a switch statement? 

if 문과 switch 문의 차이점은 무엇입니까?

The if statement is used to select among two alternatives. It uses a boolean expression to decide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternative should be executed. 

A Switch statement with 5 Case blocks can be compared to an if statement with 5 else-if blocks. 

if 문은 두 가지 대안 중에서 선택하는 데 사용됩니다. boolean 표현식을 사용하여 어떤 대안을 실행할지 결정합니다. switch 문은 여러 대안 중에서 선택하는 데 사용됩니다. int 식을 사용하여 어떤 대안을 실행해야하는지 결정합니다.

5 개의 Case 블록이있는 Switch 문은 5 개의 else-if 블록이있는 if 문과 비교할 수 있습니다.


63. What do you mean by object oreiented programming 

객체 지향 프로그래밍이란 무엇을 의미합니까?

In object oreinted programming the emphasis is more on data than on the procedure and the program is divided into objects. Some concepts in OO Programming are: 

* The data fields are hidden and they cant be accessed by external functions. 

* The design approach is bottom up. 

* The Methods operate on data that is tied together in data structure 

객체 지향 프로그래밍에서 강조는 프로 시저보다 데이터에 더 중점을 두며 프로그램은 객체로 나뉩니다. OO 프로그래밍의 몇 가지 개념은 다음과 같습니다.

* 데이터 필드는 숨겨져 있으며 외부 함수를 통해 액세스 할 수 없습니다.

* 디자인 접근법은 상향식입니다.

* 메서드는 데이터 구조에서 함께 묶인 데이터에서 작동합니다.


64. What are 4 pillars of object oreinted programming 

object oreinted 프로그래밍의 4 가지 핵심 요소는 무엇입니까?

1. Abstraction - It means hiding the details and only exposing the essentioal parts 

2. Polymorphism - Polymorphism means having many forms. In java you can see polymorphism when you have multiple methods with the same name 

3. Inheritance - Inheritance means the child class inherits the non private properties of the parent class 

4. Encapsulation - It means data hiding. In java with encapsulate the data by making it private and even we want some other class to work on that data then the setter and getter methods are provided 

1. 추상화 - 세부 사항을 숨기고 본질적인 부분 만 드러내는 것을 의미합니다.

2. 다형성 - 다형성은 여러 형태를 갖는 것을 의미합니다. 자바에서는 동일한 이름을 가진 여러 메소드가있을 때 다형성을 볼 수 있습니다.

3. 상속 - 상속은 자식 클래스가 부모 클래스의 비공개 속성을 상속 받음을 의미합니다.

4. 캡슐화 - 데이터 숨기기를 의미합니다. 자바에서는 데이터를 비공개로 캡슐화하고 심지어 다른 클래스가 해당 데이터에서 작업하기를 원한다면 setter 및 getter 메소드가 제공됩니다.


65. Difference between procedural and object oreinted language 

절차 적 언어와 객체 언어의 차이점

In procedural programming the instructions are executed one after another and the data is exposed to the whole program 

In Object Oriented programming the unit of program is an object which is nothing but combination of data and code and the data is not exposed outside the object 

절차 형 프로그래밍에서 명령어는 차례로 실행되고 데이터는 전체 프로그램에 노출됩니다

객체 지향 프로그래밍에서 프로그램 단위는 데이터와 코드의 조합에 지나지 않으며 객체 외부에 노출되지 않는 객체입니다


66. What is the difference between parameters and arguments 

매개 변수(parameters)와 인수(arguments)의 차이점은 무엇입니까?

While defining method, variables passed in the method are called parameters. While using those methods, values passed to those variables are called arguments. 

메서드를 정의하는 동안이 메서드에서 전달 된 변수를 매개 변수라고합니다. 이러한 메소드를 사용하는 동안 이러한 변수에 전달 된 값을 인수라고합니다.


67. What is reflection in java 

자바에서 reflection이란 무엇입니까?

Reflection allows Java code to discover information about the fields, methods and constructors of loaded classes and to dynamically invoke them. The Java Reflection API covers the Reflection features. 

Reflection은 Java 코드가 로드 된 클래스의 필드, 메소드 및 생성자에 대한 정보를 발견하고 동적으로 호출하도록 허용합니다. Java Reflection API는 Reflection 기능을 다룹니다.


68. What is a cloneable interface and how many methods does it contain 

cloneable 인터페이스 란 무엇이며 얼마나 많은 메소드에 포함되어 있습니까?

The cloneable interface is used to identify objects that can be cloned using the Object.clone() method. It is a Tagged or a Marker Interface and hence it does not have any methods. 

cloneable 인터페이스는 Object.clone () 메서드를 사용하여 복제 할 수있는 객체를 식별하는 데 사용됩니다. 이것은 Tagged 또는 Marker Interface이므로 어떠한 메소드도 가지고 있지 않습니다.


69. What is the difference between Java Bean and Java Class

Java Bean과 Java 클래스의 차이점은 무엇입니까?

Basically a Bean is a java class but it has getter and setter method and it does not have any logic in it

기본적으로 Bean은 Java 클래스이지만 getter 및 setter 메서드가 있으며 논리가 없으므로 데이터 보유에 사용됩니다.

반면에 Java 클래스는 Java Bean의 내용을 가질 수 있으며 내부에 일부 논리를 포함합니다.


70. What are null or Marker interfaces in Java ?

Java에서 null 또는 Marker 인터페이스 란 무엇입니까?

The null interfaces or marker interfaces or Tagged Interfaces, do not have method declarations in them. They are empty interfaces, this is to convey the compiler that they have to be treated differently 

null interfaces 또는 marker interfaces 또는 Tagged Interfaces 메소드 선언이 없습니다. 그들은 빈 인터페이스이며, 이것은 다르게 취급되어야하는 컴파일러를 전달하는 것입니다.


71. Does java Support multiple inheritance ?

Java가 다중 상속을 지원합니까?

Java does not support multiple inheritance directly like C++, because then it is prone to ambiguity, example if a class extends 2 other classes and these 2 parent classes have same method names then there is ambiguity. Hence in Partial Java Multiple inheritance is supported using Interfaces 

Java는 C ++과 같은 다중 상속을 지원하지 않습니다. 왜냐하면 클래스가 다른 2 개의 클래스를 확장하고 이러한 2 개의 부모 클래스가 동일한 메소드 이름을 갖고 모호한 경우 예를 들어 애매하게되기 쉽기 때문입니다. 그러므로 부분 Java에서 인터페이스를 사용하여 다중 상속이 지원됩니다.


72. What are virtual function ?

virtual function이란 무엇입니까?

In OOP when a derived class inherits from a base class, an object of the derived class may be referred to (or cast) as either being the base class type or the derived class type. If there are base class functions overridden by the derived class, a problem then arises when a derived object has been cast as the base class type. When a derived object is referred to as being of the base's type, the desired function call behavior is ambiguous. 

The distinction between virtual and not virtual is provided to solve this issue. If the function in question is designated "virtual" then the derived class's function would be called (if it exists). If it is not virtual, the base class's function would be called. 

파생 클래스가 기본 클래스에서 상속되는 OOP에서 파생 클래스의 개체는 기본 클래스 형식 또는 파생 클래스 형식으로 참조 (또는 형 변환) 될 수 있습니다. 파생 클래스에 의해 재정의 된 기본 클래스 함수가있는 경우 파생 개체가 기본 클래스 유형으로 캐스팅 된 경우 문제가 발생합니다. 파생 된 객체가 기본 유형으로 참조되면 원하는 함수 호출 동작이 모호합니다.

이 문제를 해결하기 위해 가상과 가상의 구별이 제공됩니다. 해당 함수가 "가상"으로 지정된 경우 파생 클래스의 함수가 호출됩니다 (있는 경우). 가상 클래스가 아닌 경우 기본 클래스의 함수가 호출됩니다.


73. Does java support virtual functions ?

Java는 가상 함수를 지원합니까?

No java does not support virtual functions direclty like in C++, but it supports using Abstract class and interfaces 

C ++과 같이 virtual functions direclty를 지원하지 않는 Java는 없지만 Abstract 클래스 및 인터페이스 사용을 지원합니다.


74. What is JVM ?

JVM이란 무엇입니까?

When we install a java package. It contains 2 things 

* The Java Runtime Environment (JRE) 

* The Java Development Kit (JDK) 

The JRE provides runtime support for Java applications. The JDK provides the Java compiler and other development tools. The JDK includes the JRE. 

Both the JRE and the JDK include a Java Virtual Machine (JVM). This is the application that executes a Java program. A Java program requires a JVM to run on a particular platform 

우리가 자바 패키지를 설치할 때. 그것은 2 가지를 포함합니다.

* 자바 런타임 환경 (JRE)

* Java Development Kit (JDK)

JRE는 Java 응용 프로그램에 대한 런타임 지원을 제공합니다. JDK는 Java 컴파일러 및 기타 개발 도구를 제공합니다. JDK에는 JRE가 포함되어 있습니다.

JRE와 JDK는 JVM (Java Virtual Machine)을 포함합니다. 이것은 Java 프로그램을 실행하는 응용 프로그램입니다. Java 프로그램을 사용하려면 특정 플랫폼에서 JVM을 실행해야합니다.


75. What is the difference between Authentication and Authorization ?

인증(Authentication)과 권한 부여(Authorization)의 차이점은 무엇입니까?

Authentication is a process for verifying that an individual is who they say they are. Authorization is an additional level of security, and it means that a particular user (usually authenticated), may have access to a particular resource say record, file, directory or script. 

인증(Authentication)은 개인이 자신이 말하는 사람인지 확인하는 프로세스입니다. 권한 부여(Authorization)은 추가 보안 수준이며 특정 사용자 (대개 인증 된 사용자)가 레코드, 파일, 디렉토리 또는 스크립트와 같은 특정 리소스에 액세스 할 수 있음을 의미합니다.


76. What types of values does boolean variables take ?

boolean 변수는 어떤 유형의 값을 취합니까?

It only takes values true and false. 

그것은 참(true)과 거짓(false) 만 값을 취합니다.


77. Which primitive datatypes are signed ?

어떤 primitive 데이터 타입이 signed 되었는가?

All primitive datatypes are signed except char and Boolean

모든 primitive 데이터 유형은 char 및 Boolean을 제외하고 signed 됩니다.


78. Is char type signed or unsigned ?

char 타입이 signed 또는 unsigned입니까?

char type is integral but unsigned. It range is 0 to 2^7-1

char type은 필수이지만 부호가 없습니다. 범위는 0 ~ 2 ^ 7-1입니다.


79. What forms an integral literal can be ?

integral literal를 형성하는 것은 무엇일 수 있습니까?

decimal, octal and hexadecimal, hence example it can be 28, 034 and 0x1c respectively 

10 진수, 8 진수 및 16 진수이므로 예를 들어 28, 034 및 0x1c가 될 수 있습니다


80. Why is the main method static ?

왜 main method는 static 입니까?

So that it can be invoked without creating an instance of that class 

그 클래스의 인스턴스를 생성하지 않아도 호출 될 수 있습니다.


81. What is the difference between class variable, member variable and automatic(local) variable 

클래스 변수, 멤버 변수 및 자동 (로컬) 변수의 차이점은 무엇입니까?

class variable is a static variable and does not belong to instance of class but rather shared across all the instances of the Class. 

member variable belongs to a particular instance of class and can be called from any method of the class 

automatic or local variable is created on entry to a method and is alive only when the method is executed

class 변수는 정적 변수이며 클래스의 인스턴스에 속하지 않지만 클래스의 모든 인스턴스에서 공유됩니다.

member 변수는 클래스의 특정 인스턴스에 속하며 클래스의 모든 메서드에서 호출 할 수 있습니다.

automatic 또는 local 변수는 메소드 진입시 작성되며 메소드가 실행될 때만 활성화됩니다.


82. When are static and non static variables of the class initialized ?

클래스의 정적 및 비 정적 변수는 언제 초기화됩니까?

The static variables are initialized when the class is loaded

Non static variables are initialized just before the constructor is called 

정적 변수는 클래스가 로드 될 때 초기화됩니다.

static이 아닌 변수는 생성자가 호출되기 바로 전에 초기화됩니다.


83. How is an argument passed in java, is it by copy or by reference? 

자바에서 전달되는 인수는 copy 또는 reference로 어떻게 전달됩니까?

If the variable is primitive datatype then it is passed by copy. 

If the variable is an object then it is passed by reference 

변수가 primitive 데이터 유형이면 사본으로 전달됩니다.

변수가 object이면 참조로 전달됩니다.


84. How does bitwise (~) operator work ?

비트 연산자 (~)는 어떻게 작동합니까?

It converts all the 1 bits in a binary value to 0s and all the 0 bits to 1s, e.g 11110000 gets coverted to 00001111 

이진 값의 모든 1 비트를 0으로 변환하고 0 비트를 모두 1로 변환합니다. 예를 들어, 11110000은 00001111


85. Can shift operators be applied to float types ?

연산자를 부동 소수점 형에 적용 할 수 있습니까?

No, shift operators can be applied only to integer or long types (whole numbers)

아니요, shift 연산자는 정수 또는 긴 유형 (정수)에만 적용 할 수 있습니다.


86. What happens to the bits that fall off after shifting ?

shifting 후 떨어지는 비트는 어떻게됩니까?

They are discarded (ignored)

그것들은 무시됩니다 (무시 됨).


87. What are the rules for overriding ?

무시하는 규칙은 무엇입니까?

The rules for Overriding are: Private method can be overridden by private, protected or public methods Friendly method can be overridden by protected or public methods Protected method can be overridden by protected or public methods Public method can be overridden by public method 

Overriding의 규칙은 다음과 같습니다. Private method는 private, protected 또는 public methods로 재정의 할 수 있습니다. Friendly method는 protected 메서드 또는 public 메서드로 재정의 할 수 있습니다. Protected 메서드는 protected 메서드 나 public 메서드로 overridden 할 수 있습니다. Public 메서드는 public 메서드로 재정의 할 수 있습니다.


88. Explain the final Modifier ?

final Modifier를 설명 하시겠습니까?

Final can be applied to classes, methods and variables and the features cannot be changed. Final class cannot be subclassed, methods cannot be overridden 

final은 클래스, 메서드 및 변수에 적용 할 수 있으며 기능을 변경할 수 없습니다. Final 클래스는 subclassed로 만들 수 없으며 메서드를 overridden 할 수 없습니다.


89. Can you change the reference of the final object ?

final 객체의 reference를 변경할 수 있습니까?

No the reference cannot be changed, but the data in that object can be changed 

reference를 변경할 수는 없지만 해당 객체의 데이터는 변경할 수 있습니다.


90. Can abstract modifier be applied to a variable ?

abstract modifier를 변수에 적용 할 수 있습니까?

No it can be applied only to class and methods 

아니요. 클래스와 메소드에만 적용 할 수 있습니다.


91. Where can static modifiers be used ?

static modifiers를 어디에서 사용할 수 있습니까?

They can be applied to variables, methods and even a block of code, static methods and variables are not associated with any instance of class 

그것들은 변수, 메소드 및 심지어 코드 블록에도 적용될 수 있습니다. 정적 메소드 및 변수는 클래스의 모든 인스턴스와 연관되지 않습니다.


92. When are the static variables loaded into the memory 

정적 변수는 언제 메모리에 로드됩니까?

During the class load time 

class 로딩 시간 동안


93. When are the non static variables loaded into the memory ?

non static 변수는 언제 메모리에 로드 됩니까?

They are loaded just before the constructor is called 

생성자가 호출되기 바로 전에로드됩니다.


94. How can you reference static variables ?

정적 변수(static variables)를 어떻게 참조 할 수 있습니까?

You can refer to static variables directly using the class name and you dont need any object instance for it. 

Ex: ClassTest.execMethod(); can be used to access the execMethod() method of the class ClassTest

클래스 이름을 사용하여 정적 변수를 직접 참조 할 수 있으며 그 대신 객체 인스턴스가 필요하지 않습니다.

예 : ClassTest.execMethod (); ClassTest 클래스의 execMethod () 메서드에 액세스하는 데 사용할 수 있습니다.


95. Can static method use non static features of there class ?

정적 메서드는 클래스의 정적이 아닌 기능을 사용할 수 있습니까?

No they are not allowed to use non static features of the class, they can only call static methods and can use static data 

클래스의 정적이 아닌 기능을 사용할 수 없으며 정적 메서드 만 호출 할 수 있고 정적 데이터를 사용할 수 있습니다.


96. What is static initializer code ?

static initializer code 란 무엇입니까?

A class can have a block of initializer code that is simply surrounded by curly braces and labeled as static e.g. 

public class Test{ 

static int =10; 

static{ 

System.out.println("Hiiiiiii"); 

And this code is executed exactly once at the time of class load 

클래스는 중괄호로 둘러싸여 있고 static으로 레이블이 지정된 초기화 코드 블록을 가질 수 있습니다.

public class Test{ 

static int =10; 

static{ 

System.out.println("Hiiiiiii"); 

그리고이 코드는 클래스를로드 할 때 정확히 한 번 실행됩니다.


97. Where is native modifier used? 

native modifier는 어디에 사용됩니까?

It can refer only to methods and it indicates that the body of the method is to be found else where and it is usually written in language other than Java. 

메서드에만 참조 할 수 있으며 메서드의 본문을 찾을 수 있음을 나타냅니다. 일반적으로 Java 이외의 다른 언어로 작성됩니다.


98. When do you use continue and when do you use break statements ?

언제 continue를 사용합니까? 그리고 언제 break 문을 사용합니까?

When continue statement is applied it prematurely completes the iteration of a loop. 

When break statement is applied it causes the entire loop to be abandoned. 

continue 문을 적용하면 조기에 루프 반복이 완료됩니다.

break 문이 적용되면 전체 루프가 포기됩니다.


99. What do you understand by late binding or virtual method Invocation ?

late binding 또는  virtual method Invocation로 무엇을 이해합니까?

When a compiler for a non object oriented language comes across a method invocation, it determines exactly what target code should be called and build machine language to represent that call. In an object oriented language, this is not possible since the proper code to invoke is determined based upon the class if the object being used to make the call, not the type of the variable. Instead code is generated that will allow the decision to be made at run time. This delayed decision making is called as late binding 

비 객체 지향 언어를 위한 컴파일러가 메소드 호출을 가로 질러 오면, 정확히 어떤 타겟 코드가 호출되어야 하는지를 결정하고 그 호출을 표현하기위한 기계어를 빌드한다. 객체 지향 언어에서는 호출 할 적절한 코드가 변수의 형식이 아니라 호출하는 데 사용되는 경우 클래스를 기반으로 결정되기 때문에 가능하지 않습니다. 대신 런타임에 결정을 내릴 수있는 코드가 생성됩니다. 지연된 의사 결정은 지연 바인딩이라고합니다.


100. Can Overridden methods have different return types ?

오버라이드 된 메소드가 다른 return types을 가질 수 있습니까?

No they cannot have different return types 

다른 return types을 사용할 수 없습니다.


101. If the method to be overridden has access type protected, can subclass have the access type as private 

재정의 할 메소드에 액세스 유형이 protected 인 경우, 서브 클래스는 private로 액세스 유형을 가질 수 있습니다.

No, it must have access type as protected or public, since an overriding method must not be less accessible than the method it overrides 

아니요, 오버라이드하는 메소드가 오버라이드하는 메소드보다 덜 액세스 할 수 없으므로 액세스 유형이 protected 또는 public이어야합니다.


102. What are the Final fields & Final Methods ? 

최종 필드 및 최종 방법은 무엇입니까?

Fields and methods can also be declared final. A final method cannot be overridden in a subclass. A final field is like a constant: once it has been given a value, it cannot be assigned again.

필드와 메소드도 final로 선언 할 수 있습니다. 서브 클래스에서는 최종 메소드를 오버라이드 할 수 없습니다. 마지막 필드는 상수와 같습니다. 일단 값이 주어지면 다시 할당 할 수 없습니다.


원문출처 : http://java4732.blogspot.kr/2014/09/qus-write-program-to-calculate-largest.html



Posted by Joseph514
해외생활이야기2017. 8. 27. 12:31

[JOBINTERVIEW]자주 묻는 자바 인터뷰 FAQ(Frequently Asked Questions)



자바개발에 관한 인터뷰 질문과 답변을 번역기와 제 발번역으로 한번 번역해봤습니다.



Top Java Frequently Asked Questions

자주 묻는 질문 (FAQ)


1. Can you write a Java class that could be used both as an applet as well as an application? 

애플리케이션뿐만 아니라 애플릿으로도 사용할 수있는 Java 클래스를 작성할 수 있습니까?

Yes. Just, add a main() method to the applet. 

예. 그냥 main() 메소드를 애플릿에 추가하십시오.


2. Explain the usage of Java packages. 

Java 패키지의 사용법을 설명하십시오.

This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes. 

이것은 프로젝트가 여러 모듈로 구성되어있을 때 파일을 구성하는 방법입니다. 또한 다른 패키지에 같은 이름의 클래스가있을 때 이름 충돌을 해결하는 데 도움이됩니다. 패키지 액세스 레벨을 사용하면 권한이없는 클래스가 데이터를 사용하지 못하게 할 수 있습니다.


3. If a class is located in a package, what do you need to change in the OS environment to be able to use it? 

클래스가 패키지에 있는 경우 이를 사용할 수 있으려면 OS 환경에서 무엇을 변경해야합니까?

You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Once the class is available in the CLASSPATH, any other Java program can use it. 

패키지 디렉토리를 포함하는 jar 파일 또는 디렉토리를 CLASSPATH 환경 변수에 추가해야합니다. 클래스가 CLASSPATH에서 사용 가능 해지면 다른 Java 프로그램도이를 사용할 수 있습니다.


4. What's the difference between J2SDK 1.5 and J2SDK 5.0? 

J2SDK 1.5와 J2SDK 5.0의 차이점은 무엇입니까?

There's no difference, Sun Microsystems just re-branded this version. 

차이점은 없습니다. Sun Microsystems는이 버전을 다시 브랜드화했습니다.


5. What are the static fields & static Methods ? 

정적 필드(static fields) 및 정적 메소드(static Methods) 란 무엇입니까?

If a field or method defined as a static, there is only one copy for entire class, rather than one copy for each instance of class. static method cannot accecss non-static field or call non-static methods 

필드 또는 메소드가 정적으로 정의 된 경우 클래스의 각 인스턴스에 대해 하나의 복사본이 아닌 전체 클래스에 대해 하나의 복사본 만 있습니다. 정적 메서드는 비 정적 필드를 accecss하거나 비 정적 메서드를 호출 할 수 없습니다.


6. How are Observer and Observable used?

Observer와 Observable은 어떻게 사용됩니까?

Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects. 

Observable 클래스의 하위 클래스 인 객체는 옵저버 목록을 유지 관리합니다. Observable 객체가 업데이트되면 각 옵저버의 update () 메소드를 호출하여 옵저버에게 상태가 변경되었음을 알립니다. Observer 인터페이스는 Observable 객체를 관찰하는 객체에 의해 구현됩니다.


7. Is null a keyword?

null이 키워드입니까?

No, the null value is not a keyword. 

아니요, null 값은 키워드가 아닙니다.


8. Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

식별자의 두 번째 문자로 사용할 수 있지만 식별자의 첫 번째 문자로 사용할 수없는 문자는 무엇입니까?

The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier. 

0에서 9까지의 숫자는 식별자의 첫 문자로 사용할 수 없지만 식별자의 첫 문자 뒤에 사용할 수 있습니다.


9. How does Java handle integer overflows and underflows? 

Java는 정수 오버 플로우(integer overflows)와 언더 플로우(underflows)를 어떻게 처리합니까?

It uses those low order bytes of the result that can fit into the size of the type allowed by the operation. 

연산에 허용 된 유형의 크기에 맞출 수있는 결과의 하위 바이트를 사용합니다.


10. What is the difference between the >> and >>> operators? 

'>>' 연산자와 '>>>' 연산자의 차이점은 무엇입니까?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out. 

>> 연산자는 오른쪽으로 이동할 때 부호 비트를 전달합니다. >>> zero-fills bits 비트가 이동되었습니다.


11. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? 

유니 코드, ASCII, UTF-16 및 UTF-8 문자를 나타내는 데 사용되는 비트 수는 얼마입니까?

Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns. 

유니 코드는 16 비트가 필요하고 ASCII는 7 비트가 필요합니다. ASCII 문자 집합은 7 비트 만 사용하지만 대개 8 비트로 표시됩니다. UTF-8은 8, 16 및 18 비트 패턴을 사용하는 문자를 나타냅니다. UTF-16은 16 비트 이상의 비트 패턴을 사용합니다.


12. Is sizeof a keyword? 

sizeof는 키워드입니까?

No, the sizeof operator is not a keyword. 

아니요, sizeof 연산자는 키워드가 아닙니다.


13. What restrictions are placed on the location of a package statement within a source code file?

소스 코드 파일 내의 패키지 문의 위치에는 어떤 제한이 있습니까?

A package statement must appear as the first line in a source code file (excluding blank lines and comments). It cannot appear anywhere else in a source code file. 

package 문은 소스 코드 파일의 첫 번째 행으로 나타나야합니다 (빈 행 및 주석 제외). 소스 코드 파일의 다른 곳에서는 사용할 수 없습니다.


14. What value does readLine() return when it has reached the end of a file?

readLine ()은 파일의 끝에 도달했을 때 어떤 값을 리턴합니까?

The readLine() method returns null when it has reached the end of a file. 

readLine () 메서드는 파일의 끝에 도달하면 null을 반환합니다.


15. What is a native method? 

native method 이란 무엇입니까?

A native method is a method that is implemented in a language other than Java. 

native method는 Java 이외의 언어로 구현되는 메서드입니다.


16. Can a for statement loop indefinitely?

for문 루프를 무기한으로 사용할 수 있습니까? 

Yes, a for statement can loop indefinitely. 

예, for문은 무한 루프 할 수 있습니다.

Ex: 

for(;;) ; 


17. What are order of precedence and associativity, and how are they used? 

우선 순위와 연관성의 순서는 무엇이며 어떻게 사용됩니까?

Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left 

우선 순위는 표현식에서 연산자가 평가되는 순서를 결정합니다. 연관성은 표현식이 왼쪽에서 오른쪽으로 또는 오른쪽에서 왼쪽으로 평가되는지 여부를 결정합니다.


18. What is the range of the short type? 

short type의 범위는 무엇입니까?

The range of the short data type is -(2^15) to 2^15 - 1. 

짧은 데이터 형식의 범위는 - (2 ^ 15) - 2 ^ 15 - 1입니다.


19. What is the range of the char type?

char type의 범위는 무엇입니까? 

The range of the char type is 0 to 2^16 - 1. 

char 형의 범위는 0 ~ 2 ^ 16 - 1입니다.


20. What is the difference between the Boolean & operator and the && operator? 

Boolean & 연산자와 && 연산자의 차이점은 무엇입니까?

&& is a short-circuit AND operator - i.e., The second condition will be evaluated only if the first condition is true. If the first condition is true, the system does not waste its time executing the second condition because, the overall output is going to be false because of the one failed condition. 

& operator is a regular AND operator - i.e., Both conditions will be evaluated always. 

&&는 단락 회로 AND 연산자입니다. 즉, 두 번째 조건은 첫 번째 조건이 참일 때만 평가됩니다. 첫 번째 조건이 참이면 시스템은 두 번째 조건을 실행하는 데 시간을 낭비하지 않으므로 하나의 실패 조건으로 인해 전체 출력이 거짓 일 것이기 때문입니다.

& 연산자는 정규 AND 연산자입니다. 즉, 두 조건이 항상 평가됩니다.


21. What is the GregorianCalendar class? 

GregorianCalendar 클래스 란 무엇입니까?

The GregorianCalendar provides support for traditional Western calendars. 

GregorianCalendar는 전통적인 서양 달력을 지원합니다.


22. What is the purpose of the Runtime class? 

Runtime 클래스의 목적은 무엇입니까?

The purpose of the Runtime class is to provide access to the Java runtime system. 

Runtime 클래스의 목적은 Java 런타임 시스템에 대한 액세스를 제공하는 것입니다.


23. What is the argument type of a program's main() method? 

프로그램의 main() 메소드의 인수 유형은 무엇입니까?

A program's main() method takes an argument of the String[] type. (A String Array)

프로그램의 main () 메소드는 String [] 유형의 인수를 취합니다. (문자열 배열) 


24. Which Java operator is right associative? 

어떤 자바 연산자가 right associative입니까?

The = operator is right associative.

'='연산자가 right associative입니다. 


25. What is the Locale class? 

Locale 클래스 란 무엇입니까?

This class is used in conjunction with DateFormat and NumberFormat to format dates, numbers and currency for specific locales. With the help of the Locale class you’ll be able to convert a date like “10/10/2005” to “Segunda-feira, 10 de Outubro de 2005” in no time. If you want to manipulate dates without producing formatted output, you can use the Locale class directly with the Calendar class

이 클래스는 DateFormat 및 NumberFormat과 함께 사용되어 특정 로케일의 날짜, 숫자 및 통화의 서식을 지정합니다. Locale 클래스의 도움으로 "10/10/2005"와 같은 날짜를 "Segunda-feira, 10 de Outubro de 2005"로 즉시 변환 할 수 있습니다. 형식화 된 출력을 생성하지 않고 날짜를 조작하려면 Calendar 클래스와 함께 Locale 클래스를 직접 사용할 수 있습니다.


26. Can a double value be cast to a byte? 

double 값을 한 바이트로 형변환 할 수 있습니까?

Yes, a double value can be cast to a byte. But, it will result in loss of precision. 

예, double 값을 바이트로 형변환 할 수 있습니다. 하지만 정밀도가 떨어질 수 있습니다.


27. What is the difference between a break statement and a continue statement? 

break 문과 continue 문 사이의 차이점은 무엇입니까?

A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the beginning of the loop. 

break 문을 사용하면 적용되는 명령문이 종료됩니다 (switch, for, do 또는 while). continue 문은 현재 루프 반복을 끝내고 제어를 루프 시작 부분으로 되돌리기 위해 사용됩니다.


28. How are commas used in the intialization and iterationparts of a for statement? 

for문을 초기화하고 반복 할 때 쉼표는 어떻게 사용됩니까?

Commas are used to separate multiple statements within the initialization and iteration parts of a for statement. 

쉼표는 for 문에서 초기화 및 반복 부분 내에서 여러 명령문을 분리하는 데 사용됩니다.


29. How are Java source code files named? 

Java 소스 코드 파일의 이름은 어떻게 지정됩니까?

A Java source code file takes the name of a public class or interface that is defined within the file. A source code file may contain at most one public class or interface. If a public class or interface is defined within a source code file, then the source code file must take the name of the public class or interface. If no public class or interface is defined within a source code file, then the file can take on a name that is different than its classes and interfaces. Source code files use the .java extension. 

Java 소스 코드 파일은 파일 내에 정의 된 공용 클래스 또는 인터페이스의 이름을 사용합니다. 소스 코드 파일에는 하나 이상의 공용 클래스 또는 인터페이스가 포함될 수 있습니다. 공용 클래스 또는 인터페이스가 소스 코드 파일 내에 정의 된 경우 소스 코드 파일은 공용 클래스 또는 인터페이스의 이름을 가져야합니다. 소스 코드 파일 내에 공용 클래스 나 인터페이스가 정의되어 있지 않으면 해당 파일은 해당 클래스와 인터페이스와 다른 이름을 사용할 수 있습니다. 소스 코드 파일은 .java 확장자를 사용합니다.


30. What value does read() return when it has reached the end of a file? 

파일의 끝에 도달했을 때 read ()가 반환하는 값은 무엇입니까?

The read() method returns -1 when it has reached the end of a file. 

read () 메서드는 파일의 끝에 도달하면 -1을 반환합니다.


31. Can a Byte object be cast to a double value? 

Byte 객체를 double 값으로 변환 할 수 있습니까?

No, an object cannot be cast to a primitive value. 

아니요, 객체는 원시(primitive) 값으로 형변환 될 수 없습니다.


32. What is the Dictionary class? 

Dictionary 클래스 란 무엇입니까?

The Dictionary class provides the capability to store key-value pairs. It is the predecessor to the current day HashMap and Hashtable. 

Dictionary 클래스는 키 - 값 쌍을 저장할 수있는 기능을 제공합니다. 현재의 HashMap과 Hashtable의 전신입니다.


33. What is the % operator? 

% 연산자 란 무엇입니까?

It is referred to as the modulo or remainder operator. It returns the remainder of dividing the first operand by the second operand. 

모듈로(modulo) 또는 나머지 연산자(remainder operator)라고 합니다. 첫 번째 피연산자를 두 번째 피연산자로 나눈 나머지를 반환합니다.


34. What is the difference between the Font and FontMetrics classes?

Font 클래스와 FontMetrics 클래스의 차이점은 무엇입니까?

The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object. 

FontMetrics 클래스는, Font 오브젝트의 상승(ascent) 및 하강(descent)등의 구현 고유의 property를 정의하기 위해서 사용합니다.


35. How is rounding performed under integer division? 

정수 나누기에서 반올림은 어떻게 수행됩니까?

The fractional part of the result is truncated. This is known as rounding toward zero. 

결과의 소수 부분이 잘립니다. 이것은 0으로 반올림하는 것으로 알려져 있습니다.


36. What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

Reader / Writer 클래스 계층 구조와 InputStream / OutputStream 클래스 계층 구조의 차이점은 무엇입니까?

The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented. 

Reader / Writer 클래스 계층 구조는 문자 지향이며 InputStream / OutputStream 클래스 계층 구조는 바이트 지향입니다.


37. What is the SimpleTimeZone class? 

SimpleTimeZone 클래스 란 무엇입니까?

The SimpleTimeZone class provides support for a Gregorian calendar. You can use it to manipulate dates & times.

SimpleTimeZone 클래스는 그레고리력을 지원합니다. 날짜 및 시간을 조작하는 데 사용할 수 있습니다.


38. For which statements does it make sense to use a label?

어떤 문구에 대해 라벨을 사용하는 것이 맞습니까?

The only statements for which it makes sense to use a label are those statements that can enclose a break or continue statement. 

레이블을 사용하는 것이 합당한 유일한 명령문은 break 또는 continue 문을 포함 할 수있는 명령문입니다.


39. What is the purpose of the System class?

System 클래스의 목적은 무엇입니까?

The purpose of the System class is to provide access to system resources. 

System 클래스의 목적은 시스템 리소스에 대한 액세스를 제공하는 것입니다.


40. Is &&= a valid Java operator? 

 '&&='은 유효한 Java 연산자입니까?

No, it is not a valid operator. 

아니, 유효한 연산자가 아닙니다.


41. Name the eight primitive Java data types. 

기본 Java 데이터 유형 8 가지를 명명하십시오.

The eight primitive types are byte, char, short, int, long, float, double, and boolean. 

여덟 가지 기본 유형은 byte, char, short, int, long, float, double 및 boolean입니다.


42. What restrictions are placed on the values of each case of a switch statement? 

switch 문에 대한 each case의 값에는 어떤 제한이 있습니까?

During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value. 

컴파일하는 동안 switch 문의 each case의 값은 int 값으로 승격 될 수 있는 값으로 평가되어야합니다.


43. What is the difference between a while statement and a do statement? 

while 문과 do 문의 차이점은 무엇입니까?

A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once. 

while 문은 루프의 시작 부분에서 다음 루프 반복이 발생하는지 여부를 확인합니다. do 문은 루프의 끝에서 루프의 다음 반복이 발생하는지 여부를 확인합니다. do 문은 항상 루프의 본문을 적어도 한 번 실행합니다


44. What is the difference between static and non-static variables? 

정적(static) 변수와 비 정적(non-static) 변수의 차이점은 무엇입니까?

A static variable is associated with the class as a whole rather than with specific instances or objects of a class. Non-static variables take on unique values with each object instance. 

정적 변수는 특정 인스턴스 또는 클래스의 객체가 아니라 클래스와 전체적으로 연관됩니다. 비 정적 변수는 각 객체 인스턴스에서 고유 한 값을 사용합니다.


45. What is the purpose of the File class? 

File 클래스의 목적은 무엇입니까?

The File class is used to create objects that provide access to the files and directories of a local file system. 

File 클래스는 로컬 파일 시스템의 파일 및 디렉토리에 대한 액세스를 제공하는 객체를 만드는 데 사용됩니다.


46. Which Math method is used to calculate the absolute value of a number?

숫자의 절대 값을 계산하는 데 사용되는 Math 방법은 무엇입니까?

The abs() method is used to calculate absolute values. 

abs () 메서드는 절대 값을 계산하는 데 사용됩니다.


47. Which non-Unicode letter characters may be used as the first character of an identifier?

유니 코드가 아닌 문자가 식별자의 첫 문자로 사용될 수 있습니까?

The non-Unicode letter characters $ and _ may appear as the first character of an identifier 

비 유니 코드 문자 인 '$' 및 '_'은 식별자의 첫 문자로 나타날 수 있습니다.


48. What restrictions are placed on method overloading? 

메소드 오버로딩에는 어떤 제한이 있습니까?

Two methods may not have the same name and argument list but different return types. 

두 메서드는 이름과 인수 목록(argument list)이 같지 않지만 반환 유형이 다를 수 있습니다.


49. What is the return type of a program's main() method? 

프로그램의 main () 메소드의 반환 유형은 무엇입니까?

A program's main() method has a void return type. i.e., the main method does not return anything. 

프로그램의 main () 메소드에는 void 반환 유형이 있습니다. 즉, main 메서드는 아무 것도 반환하지 않습니다.


50. What an I/O filter? 

I / O 필터 란 무엇입니까?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.

I / O 필터는 한 스트림에서 읽고 다른 스트림에 씁니다. 일반적으로 한 스트림에서 다른 스트림으로 전달 될 때 어떤 방식 으로든 데이터를 변경합니다.


원문출처 : http://java4732.blogspot.kr/2015/05/top-java-frequently-asked-questions.html



Posted by Joseph514
IT이야기/입코딩2017. 4. 14. 13:43


-JSP란 무엇일까요?



현재 저는 흔히들 이야기하는 자바 개발자로 일하고 있습니다.

단순하게 말하면 스프링 프레임워크로, SQL 화면 불러오고, JSP 화면에 뿌려주고 그런 일이죠.

이 JSP에 대해서 한번 말씀드려보겠습니다.

이 단어의 뜻은 Java를 사용한 서버측 코드가 들어가 있는 웹페이지란 의미로 JavaServer Page의 약자입니다. 

같은 부류에 속하는 것으로 PHP, ASP가 있습니다. 당연히, 확장자는 .jsp를 사용하지요. ex) index.jsp 이런식입니다. 

ASP와 마찬가지로 <% ... %>로 둘러싸인 스크립트 영역이 있으며, 실행시에 javax.servlet.http.HttpServlet 클래스를 상속받은 자바 소스코드로 변환된 다음 컴파일되어 실행됩니다. 

<p>Counting to three:</p>

<% for (int i=1; i<4; i++) { %>

    <p>This number is <%= i %>.</p>

<% } %>

<p>OK.</p>

이런 모양으로 사용된다고 보심되죠.

웹브라우저에 출력되는것을 확인해보겠습니다.

Counting to three:

This number is 1.

This number is 2.

This number is 3.

OK.

이렇게 나옵니다.


이 JSP 파일을 Servlet 클래스로 변환하고 실행시켜 주는 역할을 하는 프로그램이 Servlet Container로, 대표적으로 오픈소스 서블릿 컨테이너인 톰캣을 사용합니다.

개인 프로젝트인 경우 가볍고 무료인 톰켓을 많이 사용하나, 기업의 경우, 제우스나, 웹로직 같은 유료 서블릿 컨테이너들도 많습니다. 

하나의 JSP페이지가 하나의 자바 클래스이기 때문에 모든 자바 라이브러리를 끌어다 쓸 수 있습니다.

서블릿 컨테이너도 Java 프로그램이며, 자바 가상 머신 위에서 실행됩니다. 

따라서 대부분의 운영체제에서 소스코드 변경이나 재 컴파일 없이 실행시킬 수 있습니다. 

운영을 반영할때 controller등 java파일이 아닌 jsp의 경우는 그냥 새로고침만 해도 반영됩니다.

특히 유닉스계열과 궁합이 잘 맞는다고 합니다.

중-소규모 사이트에서 주로 쓰이는 PHP와 달리, 주로 대규모 기업용 시스템 구축에 사용됩니다. 

사람인이나 잡코리아를 보면 대부분의 구직란에 jsp 개발이 많습니다.

위에서 말씀드린대로, 대규모 기업 환경에서는 보통 톰캣과 같은 단순한 서블릿 컨테이너가 아닌, Java Platform, Enterprise Edition(J2EE) 사양을 만족하는 Application Server 위에서 프로그램을 운용하게 됩니다.

J2EE는 JSP의 실행 뿐만 아니라 DB 커넥션 풀, 메시징 시스템, 로드밸런싱 등등 화려한 기능들로 무장하고 있고 덕분에 매우 비싸며. 규모가 방대하고 무거우며, 메모리 등의 자원도 많이 사용하게 되고 상대적으로 초기 로딩도 느립니다.

이쪽 업계의 최고봉은 BEA의 WebLogic 이었지만 지금은 오라클에 인수된 상태 국내 한정으로 기관 등에 자주 쓰이는 티맥스소프트의 JEUS 도 J2EE 어플리케이션 서버입니다.

PHP를 지원하는 호스팅 업체는 많이 널려있지만 JSP를 호스팅 해주는 업체는 찾기가 예전에는 쉽지 않았으나, 데이터 센터와 호스팅 업체들이 클라우드 컴퓨팅으로 갈아탄 다음부터 비교적 싼 값에 자바를 운용할 수 있는 클라우드 호스팅 서비스도 꽤 생겨났다고 합니다.

구글의 App Engine이 공짜로 Java를 지원하니, 호스팅을 이용해보는것도 괜찮을거같습니다. 아니면 AWS(Amazone web server)에서 1년가량 무료로 사용하는 리눅스 서버에서 반영할수 있습니다.

PHP와 비교해서 JSP는 실행 속도가 빠르고, 안정적이고, 유지보수가 쉽다고 합니다.(정확히는 사용하기 나름이나, jsp는 어느정도 정형화 되 있어서 그런거같습니다.) 

반면 PHP는 개발 속도가 압도적으로 빠르다는 평가를 합니다.

그런데 아쉽게도 2010년대 이후의 웹 환경은 JSP의 경직된 구조를 받아들이지 못하고 있어 빠르게 인기가 식고 있다.

특히 요즘 트렌드인 API 주도형 사이트 구축과 SPA(Single Page Application)는 JSP와 정말 궁합이 안 맞는다네요. 

대기업이나 금융권, 관공서 등 주로 규모가 큰 곳에서는 여전히 수요가 있지만, 이러한 곳이 아니라면 서비스 내용 대비 쓸데없이 무겁고 학습곡선이 가파른 JSP를 선호하지 않는 경향이 있다고 합니다.

과거에 쓰였던 EJB 는 군더더기 코드가 많고, EJB를 로딩하는 데 꽤나 시간이 걸리며, 원래 분산 환경을 위해 설계되었으나 아무도 그렇게 쓰지 않고, 속도를 위해 Local Bean 으로만 줄창 쓰다가 지금은 스프링 프레임워크에게 완전히 밀려난 상태입니다.

그나마 스프링 프레임워크가 이 학습 곡선을 절반 정도로 줄여주긴 했으나 그래도 높습니다. 

스프링 프레임웍 없이 쌩으로 JSP를 사용한다면 그냥 코딩지옥이라는 평이 있습니다. 확실히 오래된 소스를 까보면 Model2 형식에 jsp로만 이루어진 사이트들이 있는데, 완전 헬 이군요.

ASP도 비슷한 사정으로 점유율이 하락중이라 합니다.

PHP가 아직 웹 쪽에서는 선방중이고(다만 사용하는 방식이 많이 변했다) 신흥강자로 node.js가 떠오르고 있습니다.

그리고 루비 온 레일즈의 성공도 JSP의 앞날을 가로막는 존재라고 하네요. 

파이썬의 장고(Django)와 플라스크(Flask)프레임워크도 편의성과 고성능, 그리고 압도적인 생산성과 낮은 학습곡선으로 JSP를 위협하고 있습니다

여기까지만 들으면 JSP 는 완전 안습이 되어 가고 있는거같은데, 한국에서의 SI에서는 최소 10년은 먹고 살걱정없을거같고, 해외 구직 사이트들에서도 분명 많은 비중을 차지하고 있습니다.

most popular coding languages of 2017

링크


여러 사이트들에서 랭킹을 매겨놨습니다.대부분은 java 언어가 1위를 차지하고 있네요.


자료 출처 : 나무위키, 위키백과

Posted by Joseph514