0% found this document useful (0 votes)
3 views2 pages

Java Sample Questions

this file gives a thorough ride through all the basic and strong areas of java that you are going to use for coding practice
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Java Sample Questions

this file gives a thorough ride through all the basic and strong areas of java that you are going to use for coding practice
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

1) which lock is used to lock the rows of a table?

a) SH_LOCK b) EX_LOCK c) LOCK d) None of the above 2) Which of the following is not a state, a thread can have during its life cycl e? a) new b) dead c) running d) excited 3) syntax for anchor tag 4) Home interface is invoked by _________ a) b) c) d) EJB object Home EJB bean None of these

5) __________ is used to store the tables used in the procedures Ans: USER_DEPENDENCIES 6) How to revoke a role? 7) Number of methods available in MouseListener Interface a)1 b) 5 c) 6 d) 4 8) What does <jsp:setproperty> do? 9) Which is not a jsp:setproperty? a) name b) property c) Id d) Param 10) Declaration form for jsp Ans: <%!Javacode%> 11) what is the expression form of jsp? 12) How to create a prpeared statement? 13) How to create a callable statement? 14) Which is used to obtain the information about the database? 15) Type II driver is a ________________ 16) How to call a function in javascript?

17) How to declare a function in java script? 18) what is the use of <Basefont> tag in HTML 19) property of <TD COLSPAN="2">is __________ 20) which is not in HTML? a) Ordered list b) Unordered LIST c) glossarylist d) linked list 21) what <src=> will do? 22) SQL stands for ________________ 23) PL/SQL code is converted into __________ code after execution. 24) & is used in which variable? 25) when will transaction will start? (Ans: When first DML command executes) 26) In package specification, you can't specify _____________ a) b) c) d) global variable Procedure & function declaration Type definition one time only procedure

You might also like