Does Java have a .new operator?

Posted by chickeninabiscuit on Stack Overflow See other posts from Stack Overflow or by chickeninabiscuit
Published on 2010-05-19T05:47:45Z Indexed on 2010/05/19 5:50 UTC
Read the original article Hit count: 265

Filed under:

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

public static void getListOfBooks(String category, BookStore bookStore) {
    serviceInstance.getBooks(category, bookStore.new BookListUpdaterCallback());
}
public static void storeOrder(List books, String userName, BookStore bookStore) {
    serviceInstance.storeOrder(books, userName,    bookStore.new StoreOrderCallback());
}

What are those new operators doing there? I've never seen such syntax, can anyone explain?

© Stack Overflow or respective owner

Related posts about java