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 2386 times
Edit
24
Community EvaluationsNo one has reviewed this question yet, be the first!