A fast-track court handed down the sentences after earlier convicting the pair, both in their 20s and members of banned militant outfit Jamayetul Mujahideen Bangladesh (JMB), said prosecutor Taslima Yesmin.
One of the men protested against the severity of the sentence, shouting out that he was a minor at the time of the shooting in 2006.
"They were found guilty of obstructing state duties and shooting at a police source on December 29, 2006. The source later died in a hospital," Yesmin told AFP.
The pair, one of whom was 14 at the time, started firing at police and the informant who tried to stop them at a traffic post in the northern district of Tangail on suspicion of smuggling explosives.
Bangladesh banned the JMB in 2005 when it carried out a series of suicide blasts and nationwide synchronised explosions of more than 400 small bombs.
The blasts killed 28 people in total, including secular activists and two judges.
The bombings raised concerns at the time of a rise in Islamic militancy in the moderate Muslim-majority nation.
Around 100 members of various outfits are currently on death row for militant-related crimes with their appeals ongoing in higher courts.
JMB was behind a bomb blast across the border in eastern India last month that left two people dead, according to Indian media reports.
Defence lawyer Faruque Ahmed said he would appeal on the grounds that one of those convicted, Saiful Islam, was a minor when the shooting occurred.
"The judge acknowledged that Saiful was a minor at the time of the crime. But he said he could not consider Saiful's young age because the crimes were committed against the state," Ahmed told.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
