class motey { public static void main(String[] args) { System.out.println("H"); } } /* javac h.java java motey (prints the letter H) */
Someone did an ontology of computer languages and defined how they all relate in terms of how the are applied and I passed it once and didn't bookmark it or I imagined it. I don't know where it is , but maybe one day I will find it again. This is so I can test some decision trees in java and perhaps have my program create an AI program written C that writes programs in java. It is not surprising that languages have many of the same features, as they must all run on a computer and they must perform the same logic ultimately. This is about as simple as it gets. `javac` compiles the named file "h.java" and produces "motey.class" `java` runs the compiled code referenced by the name motey by opening "motey.class".
Wed Jan 06 11:11 PM$ strings motey.classCode LineNumberTable main ([Ljava/lang/String;)V SourceFile h.java motey java/lang/Object java/lang/System Ljava/io/PrintStream; java/io/PrintStream println (Ljava/lang/String;)V
0 comments:
Post a Comment