Sunday, July 12, 2009

Java,C,telephony?

Hello Every1,


I've these questions related to programming and would call your attention.


1)I always wonder why some programmers use C instead of Java.Java is simple platform independent and has a GUI development tools.Are there any advantages of C over Java?





2)Is there a way to use C program with Java programs?





3)If there is a good website on developing telephony applications such as communication between cellphone and pc etc,please be so kind to tell me?





Thanks.

Java,C,telephony?
1) Being a language that is closer to the hardware, C, is a much more powerful language than Java. As such, you can usually code the same algorithms in C more efficiently than in Java. Java is platform independent, so doing platform specific things isn't all that great in Java, where as C is probably the dominant platform specific language (though it still has the ability to be cross platform if used correctly).





2) Yes, it's called Java Native Interface (JNI). It allows things outside of the JVM to be called and make calls to Java programs.


http://en.wikipedia.org/wiki/Java_Native...





3) Not sure about this, but if you're using java, you may want to look into Java (Java Media Framework). It can be used for audio/video playback and capture.


No comments:

Post a Comment