Simple: How to write field vs property java

So yes I did Google this, but couldn’t find an answer.
But all I need to know is how to write a field vs a property, or what makes a var a field vs a property.

it is

var name = 1;


var name : int = 1;