-
-
-
-
-
-
-
Write a program using servlets that will take a numeric input on page named index page, if the input is 1 then page 1 will be displayed and if input is 2 thepage2 will be displayed.
The index page will contain an input field and a button. When the button will be clicked then on the basis of input (1 or 2) the respective page will be opened. The newly opened page i.e. page1 or page2 should display the name of page on it in green color.
-
-
-
How do you read MS Word document from Java Servlet
How I can read a MS Word file using Java Servlet, basically I want to read a doc file and then I want to put the data in the database, is it possible, and how?
-
-
-
-
Tell me the contexts in which the Unary numeric promotion is applied?
Unary numeric promotion is applied in the following contexts:1.operand of the unary arithmetic operators + and -2.operand of the unary integer bitwise complement operator ~ 3.during array creation; for example, new int[20], where the dimension expression (in this case 20) must evaluate to an int value 4.indexing array elements; for example, table['a'], where the index expression (in this case 'a')...
-
What are the characteristics of cookies?
The following are a list of characteristics of cookies:1.Cookies are only sent back to the server that created them and not to any other server.For example,if a cookie was created by the Web server of www.macromedia.com and sent to the client or the browser,the cookie can be sent back to the same server only.2.Cookies are only used by the server to find out the computer name,IP address or any other...
-
What is binary numeric promotion states?
Binary numeric promotion implicitly applies appropriate widening primitive conversions so that a pair of operands have the broadest numeric type of the two, which is always at least int. Given T to be the broadest numeric type of the two operands, the operands are promoted as follows under binary numeric promotion.If T is broader than int, both operands are converted to T; otherwise, both operands...
-
-
What is the another name for native methods?
Foreign methods.
-
-
Java Interview Questions
Ans