• Home
  • Search
  • A Study on ChatGPT-Based Code Translation from Python to Java
  • https://doi.org/10.54254/2755-2721/2025.ld21186Copy DOI Icon

A Study on ChatGPT-Based Code Translation from Python to Java

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

Programming language translation is essential in modern software development, facilitating cross-platform compatibility and the adaptation of legacy systems. This study examines the performance of large language models (LLMs), such as ChatGPT, in Python-to-Java code translation. Using a dataset of ten diverse algorithmic problems and advanced prompt engineering techniques, we evaluate the models’ effectiveness in maintaining computational accuracy (CA) and preserving method correctness (PMC). Results indicate that LLMs perform well on standard tasks but encounter challenges in complex scenarios involving advanced data structures and recursion. These findings uncover the potential of LLMs in code translation while highlighting the need for improved prompt strategies and domain-specific fine-tuning for complex tasks.

Similar Papers
  • Research Article

When Large Language Models (LLMs) walk into a Bachelor’s in optometry examination: Comparing the performances of LLMs and bachelor of optometry students

  • Mar 26, 2026
  • Indian Journal of Ophthalmology
  • Atul Arora +7
  • Research Article
  • Citations18

Evaluating text and visual diagnostic capabilities of large language models on questions related to the Breast Imaging Reporting and Data System Atlas 5th edition.

  • Sep 09, 2024
  • Diagnostic and interventional radiology (Ankara, Turkey)
  • Yasin Celal Güneş +3
  • Research Article
  • Citations7

Legal aspects of generative artificial intelligence and large language models in examinations and theses.

  • Jan 01, 2024
  • GMS journal for medical education
  • Maren März +3
  • Research Article

Evaluating gpt-4 for zero-shot classification of bleeding and clotting events: Can large language models serve as second reviewers?

  • Nov 03, 2025
  • Blood
  • Samantha Rizzo +5
  • PDF
  • Research Article
  • Citations1

In-context learning enables large language models to achieve human-level performance in spinal instability neoplastic score classification from synthetic CT and MRI reports.

  • Sep 24, 2025
  • La Radiologia medica
  • Maximilian F Russe +9
  • Research Article
  • Citations5

Textual Proficiency and Visual Deficiency: A Comparative Study of Large Language Models and Radiologists in MRI Artifact Detection and Correction.

  • May 01, 2025
  • Academic radiology
  • Yasin Celal Gunes +7
  • Research Article
  • Citations8

Large language model may assist diagnosis of SAPHO syndrome by bone scintigraphy.

  • Dec 28, 2023
  • Modern rheumatology
  • Yu Mori +4
  • Research Article
  • Citations5

Performance of Popular Large Language Models in Glaucoma Patient Education: a randomized controlled study

  • Dec 03, 2024
  • Advances in Ophthalmology Practice and Research
  • Yuyu Cao +11
  • PDF
  • Research Article
  • Citations25

Investigating the Impact of Prompt Engineering on the Performance of Large Language Models for Standardizing Obstetric Diagnosis Text: Comparative Study

  • Feb 08, 2024
  • JMIR Formative Research
  • Lei Wang +7
  • Research Article
  • Citations7

Performance and Reproducibility of Large Language Models in Named Entity Recognition: Considerations for the Use in Controlled Environments

  • Dec 11, 2024
  • Drug Safety
  • Jürgen Dietrich +1
  • Research Article

ICAM-Trans: Implicit-Context-Aware Multi-Agent Framework for Function-Level Code Translation

  • Apr 21, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Ruolin Chen +4
  • Conference Article

A Framework for Entity-Relationship Extraction in the Electric Domain Based on Large Language Models

  • Jun 20, 2025
  • Xiaohui Wang +5
  • Research Article
  • Citations2

Preliminary assessment of large language models' performance in answering questions on developmental dysplasia of the hip.

  • Apr 15, 2025
  • Journal of children's orthopaedics
  • Shiwei Li +2
  • Research Article

Diagnostic accuracy of large language models in the classification of superior labial frenulum attachments.

  • Dec 10, 2025
  • Odontology
  • Mehmet Gümüş Kanmaz +1
  • Research Article
  • Citations5

Can American Board of Surgery in Training Examinations be passed by Large Language Models? Comparative assessment of Gemini, Copilot, and ChatGPT.

  • May 12, 2025
  • The American surgeon
  • Ahmet Necati Sanli +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.