Generating Java Methods: An Empirical Assessment of Four AI-Based Code Assistants
Not on the map. Why?
Abstract (arXiv)
AI-based code assistants are promising tools that can facilitate and speed up code development. They exploit machine learning algorithms and natural language processing to interact with developers, suggesting code snippets (e.g., method implementations) that can be incorporated into projects. Recent studies empirically investigated the effectiveness of code assistants using simple exemplary problems (e.g., the re-implementation of well-known algorithms), which fail to capture the spectrum and nature of the tasks actually faced by developers. In this paper, we expand the knowledge in the area by comparatively assessing four popular AI-based code assistants, namely GitHub Copilot, Tabnine, ChatGPT, and Google Bard, with a dataset of 100 methods that we constructed from real-life open-source Java projects, considering a variety of cases for complexity and dependency from contextual elements. Results show that Copilot is often more accurate than other techniques, yet none of the assistants is completely subsumed by the rest of the approaches. Interestingly, the effectiveness of these solutions dramatically decreases when dealing with dependencies outside the boundaries of single classes.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Feb 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 3; 2025: 0; 2026: 3.
6 papers.
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 26
- 2024The Impact of Prompt Programming on Function-Level Code Generationcited by 13
- 2026AI IDEs or Autonomous Agents? Measuring the Impact of Coding Agents on Software Developmentcited by 11
- 2024Benchmarking LLM Code Generation for Audio Programming with Visual Dataflow Languagescited by 1
- 2026From Overload to Insights: How AI Agents Can Support Scientists in Analyzing Complex Datacited by 0
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessmentcited by 0
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026From Overload to Insights: How AI Agents Can Support Scientists in Analyzing Complex Data18 Jul 2026
- 2026AI IDEs or Autonomous Agents? Measuring the Impact of Coding Agents on Software Development20 Jan 2026
- 2024The Impact of Prompt Programming on Function-Level Code Generation29 Dec 2024
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents18 Oct 2024
- 2024Benchmarking LLM Code Generation for Audio Programming with Visual Dataflow Languages1 Sep 2024