How does “object.new” work? (Does Java have a .new operator?)

后端 未结 3 1476
甜味超标
甜味超标 2020-12-07 13:31

I came across this code today whilst reading Accelerated GWT (Gupta) - page 151.

public static void getListOfBooks(String category, BookStore bookStore) {
           


        
3条回答
  •  长情又很酷
    2020-12-07 13:48

    I haven't seen this syntax before either, but I think it will create an inner class of BookStore.

提交回复
热议问题