The PHP Scalability Myth
Subject:   Dude's right!
Date:   2003-10-17 19:58:30
From:   anonymous2
Response to: Dude's right!

System.out.println("Hello World");

Oh yea, 10 lines.. Maybe you need to learn to count.


Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • Dude's right! and you're wrong
    2003-12-10 02:51:46  anonymous2 [View]

    echo "Hello World"

    I don't know Java and don't profess to. Plus I'm a hobbyist who's still learning (always learning!) but even I can see that PHP is going to be easier to script...
  • Dude's right!
    2003-10-18 01:23:46  anonymous2 [View]

    Not to be disrespectful, but I do think you left out a few things.
    For just a terminal

    class HelloWorldApp {
    public static void main(String[] args) {
    System.out.println("Hello World!"); //Display the string.

    For an Applet
    import java.applet.Applet;
    import java.awt.Graphics;

    public class HelloWorld extends Applet {
    public void paint(Graphics g) {
    g.drawString("Hello world!", 50, 25);

    For a Java Bean
    package org.acme;

    import java.rmi.RemoteException;
    import javax.ejb.*;

    public class HelloBean implements SessionBean {
    private SessionContext sessionContext;
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sessionContext) {
    this.sessionContext = sessionContext;
    public String sayHello() throws java.rmi.RemoteException {
    return "Hello World!!!!!";