Friday, April 25, 2014

JAVA INTERVIEW QUESTION

  • whats inline thread?
  • iterate thro a hasmap and print values
  • How to sort arraylist?
  • whats bean managed transaction - ejb
  • whats named query - hibernate
  • whats the use of having keyword - sql
  • oracle stored procedure and functions
  • various types of struts actions
  • whos responsible for serilization .
  • is there any chance for deadlock in java
  • Deadlock describes a situation where two or more threads are blocked forever, waiting for each other.
  • spring simpleform controlller and method
  • whats webservice?
  • a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.[1]
  • what are jsp core librabries?
  • Core Tags
  • Formatting tags
  • SQL tags
  • XML tags
  • JSTL Functions
  • various level of synchronization?
1)Method level Synchronization: A method can be Synchronized by adding a perfix word "Synchronize". Here we have Parametrised Synchronization options also.
1)Method level Synchronization: A method can be Synchronized by adding a perfix word "Synchronize". Here we have Parametrised Synchronization options also.
example: public Synchronize void foo(){}
2)Block level Synchronization: A block can be Synchronized by adding a perfix word "Synchronize". Here we have Parametrised Synchronization options also.
Synchronize {    }

  • how to call stroed procedure from hibernate

...

     name="com.mkyong.common.Stock" table="stock" ...>
         name="stockId" type="java.lang.Integer">
             name="STOCK_ID" />
             class="identity" />
        
name="stockCode" type="string"> name="STOCK_CODE" length="10" not-null="true" unique="true" /> ...   name="callStockStoreProcedure"> alias="stock" class="com.mkyong.common.Stock"/> <![CDATA[CALL GetStocks(:stockCode)]]>  

No comments:

Post a Comment