President Donald Trump's favorability rating among the U.S Armed Forces is far higher than among the general public, according to a recent poll by Military Times.

According to the poll, 44 percent of all troops have a favorable rating of their commander in chief, while 40 percent see him unfavorably. Recent polls of the general population show favorable rating below 40 percent and unfavorables up to 56 percent, the Times noted.

But most of that support came from enlisted troops. The president got a thumbs up from 48 percent of enlisted personnel, while only 30 percent of officers agreed.

Women and minorities also had less favorable views. Men gave Trump a 47 percent favorable rating, while only 32 percent of women did.

Non-white servicemembers gave the president a 51 percent unfavorable mark, while only 37 percent of white troops did.

Members of the Navy gave Trump his highest unfavorables (49 percent), while Marines gave him his highest favorables (59 percent).

Retired Marine Maj. Ross Schellhaas told Military Times that Trump's style likely is a better match with those of young Marines than other branches.

"I think those young people come from the more conservative regions of our nation and tend to vote that way," Schellhaas said.

Then, there is Trump's Defense Secretary, retired Marine Gen. James Mattis, a beloved leader called "Mad Dog" by those who have served under him.

"That's the Mattis effect," said Phil Carter, director of the Military, Veterans, and Society Program at the Center for a New American Security.

Trump also has a retired Marine general, John Kelly, as his chief of staff.

The poll talked to 1,131 active-duty servicemembers online between Sept. 7 and 25. The margin of error for the total sample was plus-or-minus 3 percent.