問題詳情
116 A servlet class is injected with a JDBC data source. After injection has occurred, the servletneeds to create a cache out of some of the data in the database, so as to improve responsiveness.Which two methods can host the cache creation code? (Choose two)
(A) Servlet.init()
(B) Servlet.destroy()
(C) A method annotated with @Init
(D) A method annotated with @PostConstruct
(E) A method annotated with @PreDestroy
(A) Servlet.init()
(B) Servlet.destroy()
(C) A method annotated with @Init
(D) A method annotated with @PostConstruct
(E) A method annotated with @PreDestroy
參考答案
無參考答案
內容推薦
- 114 Given a header in an HI IP request:X-Retries: 4A Which two retrieve the value of the header from
- 835 . 黃 銅 或 紅 銅 水 管 之 接 頭 , 不 可 採 用 下 列 何 種 方 式 ? (A) 錯 接 (B) 對 接 (C) 銲 接(D) 套接。
- 113 Given: class MyServlet extends HttpServlet { public void doPut(HttpServletRequest req,
- 837 . 施 工 時 配 戴 防 護 用 具係為 (A) 防 火 消 防 (B) 工作安全 (C) 提高效率 (D) 防 毒 氣 。
- 836 . 自 來 水 管 若 要 用 固 定 台 來 固 定 , 以 (A) 固定管式 (B) 滑 動 式 (C) 彈簧式 (D) 混凝 土 式 為佳。
- 834 . 若 採 用 氣 壓 槽 式 供 水 , 槽 內 空 氣 體 積 愈 大 (A) 水 壓 變 化 愈 小 (B) 水 壓 變 化 愈大 (C) 水壓不變 (D) 水 壓 與 之 無 關 。
- 832 . 消 防 栓 之 設 置 間 隔 , 最 大 應 不 超 過 多 少 公 尺 ? (A) 2 0 (B) 5 0 (C) 100 (D) 150 。
- 833 . 自 來 水 用 戶 接 管 之 內 線 (A) 包 括 水 錶 (B) 產 權 屬 自 來 水 事 業 (C) 產權屬於用戶 (D) 應 由 自 來 水 事 業 養 護 及 維 修 。
- 831 . 用 於 輸 水 至 配 水 池 要 裝 置 什 麼 閥 ? (A) 減壓閥 (B) 加 壓 閥 (C) 高度閥 (D) 空 氣閥 。
- 830 . 自 來 水 管 線 施 工 , 有 關 「 還 土 」 之 規 定 , 何 者 為 錯 誤 者 ? (A) 填料以黏土為最佳 (B) 水 管 周 圍 30 公分以內不得夾有石塊 (C) 要
內容推薦
- 119 A web application wants to expose to its clients an operation that results in a transactionbeing
- 118 You are creating a new ISP page and you need to execute some code that acts when thepage is firs
- 120 Which code snippet specifies the metadata for a servlet with:(i) url mapping "/mytest"
- 121 You are building JSP pages that have a set of menus that are visible based on a user'ssecur
- 122 In your web application, you need to execute a block of code whenever the session object isfirst
- 123 A popular Ajax framework and its companion widget library contain several hundreds offiles of di
- 124 Which JSTL code snippet can be used to import content from another web resource?(A) <c:import ur
- 125 A method call inside your servlet has thrown an IOException resulting from a lost networkconnect
- 126 Which annotation enables a servlet to efficiently process requests of typo multipart/formdata th
- 附表為燭火至透鏡距離 a(物距)與紙屏至透鏡距離 b(像距)的關係。試回答下列問題: 【題組】(3)當物距 a=50 公分時,在紙屏上所成的像為下列何者? (A)縮小的倒立實像 (B)放大的倒立
- 127 To add a servlet to a context that has not been declared either via annotation or via thedescrip
- 129 Given a web fragment jar file, where should we put the web fragment.xml inside the jar file?(A)
- 128 In ServletContext.getNamedDispatcher(string arg0) arg0 is the(A) url of a servlet relative to th
- 130 What XML snippet must be added to the web.xml deployment descriptor to mandate thatthe container
- ◎方萍在顯微鏡底下分別觀察到三種細胞分別為(a)口腔皮膜細胞、(b)水蘊草葉片細胞和 (c)葉下表皮細胞的影像,請依圖回答 39~41 題:【題組】方萍在觀察完以上三種細胞後,將三種細胞做了個
- 838 . 單 線 圖 上 符 號 係表示 (A) 水 流 方 向 (B) 伸縮接頭 (C) 異 徑 接 頭 (D)由令接頭。
- 131 View the Exhibit. Which two technologies would be suitable for use as Front Controller elements
- 有四個質量相同且沿直線運動的木塊甲、乙、丙、丁,其運動狀態分別如下: 甲向南移動且速率每秒增加 1 m/s;乙向南移動且速率每秒減少 2 m/s; 丙向北移動且速率每秒增加 3 m/s;丁向北移
- 附圖是甲車和乙車在直線道路上的 x-t 圖,試問下列敘述何者正確? (A)甲車全程的位移<乙車全程的位移 (B)甲車全程的路徑長<乙車全程的路徑長(C)甲車全程的位移>乙車全程的位移 (D)甲車
- 小澄在水帄桌上灑上一圈麵粉,將一卷膠帶水帄放於桌面上,中間放入ㄧ顆彈珠,如圖六所示。搖動膠帶使彈珠沿膠帶內側轉動,當彈珠滾動到丁點時,由膠帶提供的向心力方向為何?【題組】承上題,彈珠滾動一
- 839 . 螺 栓 旋 緊 作 業 時 , 下 列 工 具 何 者 不 得 使 用 ? (A) 管 鉗 (B) 扭力扳手 (C) 套 筒 扳手 (D) 梅花扳手。
- 841 . 管 徑 100 公 厘 球 狀 石 墨 鑄 鐵 管 機 械 接 頭 的 螺 栓 孔 數 為 幾 孔 ? (A) 4 (B) 6 (C) 8(D) 10 。
- 840 . 使 用 高 速 砂 輪 切 割 鋼 管 最 重 要 工 作 為 (A) 沖 水 (B) 固 定 (C) 扶 正 (D) 注油。
- 842 . 機 械 接 頭 之 接 合 , 首 先 應 將 下 列 何 項 附 件 裝 於 插 口 端 ? (A) 墊 料 (B) 承 口 (C)押 ( 壓 ) 圈 (D) 橡 膠 圈 。
- 843 . 管 線 工 程 回 填 砂 施 工 時 , 其 檢 驗 內 容 為 (A) 氯 離 子 含 量 檢 驗 (B) 含 泥 量 檢 驗(C) 篩分析檢驗 (D) 含 泥 量 、 氯 離 子 含