Sun. Feb 23rd, 2025
Notifications
Clear all

Is it considered bad practice to use the String class from Java in C/C++? Was it previously considered good practice?


Chris DuBois
Posts: 1239
Registered
Topic starter
(@chris)
Famed Member
Joined: 6 months ago

The String class is native to Java, but in C/C++, developers use std::string (C++) or char arrays (C). Why is it considered bad practice to use Java-style strings in C++, and how does this impact performance and memory management?

Share: