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