Eclipse Java: Multiple markers at this line error


Error Multiple markers at this line
Error Multiple markers at this line
Multiple markers at this line
 - Strings cannot be resolved to a type
 - Strings cannot be resolved to a type

If you see an error in your class around the gutter area and hover over it and see Multiple markers at this line, that means that particular line/statement has multiple errors and you would see those errors in the next lines, followed by a hyphen.

Let's try an replicate this error message,

package sample;

public class Sample {

	public static void main(String[] args) {
		Strings string = new String("Hello there");
	}

}

As you can see I have tried to instantiate an unknown class Strings, so there are multiple errors in this line, 1 - I have created an object of an unknown class, 2 - I have tried to create an object with a constructor argument that does not exists, hence I get the above errors.