单项选择题

在电商项目中把baseUrl定义成变量,如何保证这个变量只能读不能被修改()

A.static修饰
B.final修饰
C.abstract修饰
D.private修饰

微信扫码免费搜题