# why c + + and java mix in android?

**URL:** <https://forums.imgtec.com/t/why-c-and-java-mix-in-android/1385>\
**Category:** PowerVR Insider\
**Created:** [April 14, 2012, 10:43am UTC](https://forums.imgtec.com/t/why-c-and-java-mix-in-android/1385 "2012-04-14T10:43:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brewswang](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@brewswang](https://forums.imgtec.com/u/brewswang)\
**Post date:** [April 14, 2012, 10:43am UTC](https://forums.imgtec.com/t/why-c-and-java-mix-in-android/1385/1 "2012-04-14T10:43:15Z")

</div>

Hello, everyone, I the andriod have java project using the PowerVR Insider, SDK, I hope to get advice, thank youã€‚

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [April 16, 2012, 8:41am UTC](https://forums.imgtec.com/t/why-c-and-java-mix-in-android/1385/2 "2012-04-16T08:41:50Z")

</div>

We use C++ in the SDK as it is the most commonly used language when writing graphics applications for our graphics cores and it is easier to write high performance code with than Java. Additionally, C++ is much more portable than Java for mobile OSs.  
  
It's not currently possible on Android to write an entirely native C++ application on Android (many OS features can only be accessed through Java-based APIs) . A Java wrapper layer is required to use C++ code on Android.  
  
  
  
Joe2012-04-16 10:43:30
