[問題] 沒有宣告class保留字的類別
程式碼如下:
import javax.ws.rs.core.Response;
@GET
@Produces({"application/json"})
public Response getSearchResults(@Context HttpServletRequest request)
{
String title = request.getParameter("title");
String type = request.getParameter("type");
return search(request, title, null, new String[] { type });
}
而關於Response的定義在https://tinyurl.com/oc8fyse
想請問一般的類別前面不是都會宣告class關鍵字嗎
這種前面只加修飾詞的用法是依據什麼?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.124.165.66
※ 文章網址: https://www.ptt.cc/bbs/java/M.1490065183.A.A8E.html
→
03/21 11:03, , 1F
03/21 11:03, 1F
→
03/21 11:10, , 2F
03/21 11:10, 2F
推
03/21 11:35, , 3F
03/21 11:35, 3F
→
03/21 12:00, , 4F
03/21 12:00, 4F
→
03/31 09:02, , 5F
03/31 09:02, 5F
推
04/01 03:51, , 6F
04/01 03:51, 6F
→
04/01 03:51, , 7F
04/01 03:51, 7F
java 近期熱門文章
PTT數位生活區 即時熱門文章