Answer the question
In order to leave comments, you need to log in
What is a construct in Java?
I started learning Java, and here is this:
import static spark.Spark.*;
public class HelloWorld {
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello World");
}
}
Answer the question
In order to leave comments, you need to log in
As I understand it, you are studying this Spark - A tiny Sinatra inspired framework for creating web applications in Java 8 with minimal effort.
If I understand correctly, then the request is "get("/hello", (req, res) -> "Hello World");" and the actual response arrives from the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question