+ 1
What is HelloWorld
HelloWorld
4 Respuestas
+ 4
That’s a bit of a strange question 🙂 — in test code, HelloWorld is just a simple placeholder class, method or just string used to check that the test setup works before writing real tests.
A simple test in C:
#include <stdio.h>
int main() {
// Minimal "test"
printf("Hello, World!\n");
return 0;
}
+ 4
"Hello, World!" is the classic first program for those learning a new language.
Historically:
Tim Berners-Lee
August 6, 1991,
Usenet newsgroup
" A public honoring of the first website to go public on the world wide web "
0
“Hello, World!” is the simplest program or output you usually write when learning a new programming language.
In text-based languages (like Python, C, Java), it just prints the words Hello, World! on the screen.
In web development (HTML), it usually means writing a webpage that displays “Hello, World!”.
0
Heres a simple test in Java and lua
Java:
public class main {
public static void main(String[] args) {
System.out.println(“Hello World”);
}
}
Lua:
print(“Hello World”)