---
title: "操作符优先级"
author: "tenderuser"
date: "2013-02-28T19:53:40Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2013-02-28T19:53:40Z"
id: 1818972
url: "https://tenderuser.iteye.com/blog/1818972"
---

```java

log.info(names[i]+":" + objs[i]==null?"null":objs[i].toString());

```

由于操作符优先级等原因，上述代码，如果当objs* ==nulld的时候，会报空指针，以上留作纪念 :?:  :?:  :?:  :?: