Iaith rhaglennu yw Java.
Crëwyd Java gan James Gosling o Sun Microsystems ym 1991. Roedd yn seiliedig ar C++. Mae Java yn iaith Gwrthrych Gyfeiriol. Gellir rhedeg rhaglen Java sydd wedi'i chrynhoi ar unrhyw Java Virtual Machine (JVM) (er enghraifft i'r systemau weithredu Linux, Microsoft Windows neu Mac OS X). Gwneir hyn trwy grynhoi'r cod Java i Byte Code sydd yn ddarllenadwy i'r Java Virtual Machine.
Rhaglen "Shwmae byd":
public class ShwmaeByd { public static void main(String[] args) { System.out.println("Shwmae byd!"); } }
This article uses material from the Wikipedia Cymraeg article Java (iaith rhaglennu), which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Rhoddir testun y dudalen ar gael ar delerau'r drwydded CC BY-SA 4.0, heblaw ei fod wedi nodi'n wahanol. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki Cymraeg (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.