Because that is exactly what you told it to do:
System.out.println ("marks");
prints a literal string: the word
marks
not the variable of the same name - in the same way that this code:
System.out.println ("Hello World");
prints the string
Hello World
To print the variable's content, remove the double quotes:
System.out.println (marks);