• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

C++ Equivalent to Java Casts

The closest equivalent to the standard Java casting operator is the static_cast operator in native C++.  The behavior of this C++ operator is subtly different from the Java casting operator though, so you should always test the behavior of your new C++ code.

Java C++
x = (FooType)myObject; x = static_cast<FooType*>(myObject);


Use Java to C++ Converter to convert from Java to C++.     

Additional resource: Java and C++ Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.