Question from the Java - Fundamentals test

Write a Java program that prints 'welovedev'.

Easy

Given this code :

public class QuestionJava {
     
    String var = "we";
     
    public static void main(String[] data) {
        String var2 = "lovedev";
        System.out.print(var + var2);
    }
}

What will this code do ?

Author: PierreStatus: PublishedQuestion passed 2376 times
Edit
23
Community EvaluationsNo one has reviewed this question yet, be the first!