• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Is there any program that will convert Java to C or C++?

On a Windows platform?
0
roopi
Asked:
roopi
  • 3
  • 2
  • 2
  • +4
1 Solution
 
CEHJCommented:
Why would you want to do that?
0
 
roopiAuthor Commented:
to help me understand.
0
 
CEHJCommented:
I don't know of one, but would guess that the translation would not be very good even if there were one.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
bkrahmerCommented:
Understand what, pray tell?  Java reads just like c++ to me, the first couple chapters of any java book explains the rest.
brian
0
 
roopiAuthor Commented:
so is that a NO?
0
 
sciuriwareCommented:
Hi roopi,
imagine this: there's at least a GNU JAVA -> "exe" converter; you could disassemble the produce into ANSI C only to find out that you would never write it like that.
So, if you want to understand JAVA better, dig into the javac compiler(s) or improve your theoretical knowledge of the language and you'll never want to see C(++(#)) again.
;JOOP!
0
 
objectsCommented:
0
 
CEHJCommented:
As bkrahmer says, the language syntax is pretty similar so you shouldn't have too much problem understanding Java.

Where you might have more of a problem, especially if you've originally come through C as opposed to C++, is in the area of OOP. Java is built from the ground up on OOP principles, so it would be a good idea to read some material where examples are given and the engineering rationale is clearly explained.

Having said that, Java unfortunately does not force the programmer to use it in an OO way and you'll see plenty of examples of Java used in a procedural way, particularly on this site.
0
 
CleanupPingCommented:
roopi:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
TimYatesCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept CEHJ's comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TimYates
EE Cleanup Volunteer
0
 
objectsCommented:
CEHJ said he didn't know of one didn't he?
I posted a link to converter, what was wrong with that?
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now