Java Web Programming with ChatGPT

Muhan Guo · 2024

With the rapid development of artificial intelligence (AI), ChatGPT is an important technical breakthrough in the field of natural language processing (NLP). ChatGPT, as a large-scale language model, focuses on the task of conversation generation and has attracted wide attention in academia and industry. Meanwhile, it brings opportunities and challenges to Java Web programming. Compared with previous studies that investigated the ability of ChatGPT to solve small-scale Java programming problems that emphasized basic concepts, this paper explores how well ChatGPT can produce sequential Java code to construct the complete Web project. A series of experiments based on the user-login study case are conducted to evaluate the performance of ChatGPT-generated code. Through thorough experimental analysis, the generated code is characterized by high readability, good quality, and complete functionality. However, ChatGPT's performance degrades when instructions contain limited text information. In conclusion, ChatGPT has the potential to be an important assistant for developers, greatly improving efficiency and productivity in the software development process.

Read the paper · More papers on PaperTik