Cmaj7 is made of these notes: C (root), E (major third), G (fifth), B (major seventh).
With this shape the strings sound like this, from the G string to the A string: G, C, E, B.
A major seventh chord sounds dreamy and soft. It can replace the plain major chord, especially at the start or end of a song.
Cmaj7 belongs to these major keys: C major (degree I), G major (degree IV).