PDA

View Full Version : Java Tips


Pages : [1] 2 3

  1. Debugging - Finding runtime problems
  2. Performance optimization tips for J2EE
  3. Hibernate interview Q&A
  4. XML-based configuration metadata in Spring Framework
  5. How to control DataBase connections using Spring framework
  6. How to update database using Spring framework
  7. How to get whole record of a table into a java List
  8. How to run Queries in Spring framework
  9. How to Execute SQL statements in Spring Framework
  10. How DataSource Concept works in Spring Framework
  11. What is use of NamedParameterJdbcTemplate in Spring Framework
  12. How to use JDBC Template classes to control basic JDBC processing and error handling
  13. What are packages in Spring Framework for JDBC Support
  14. How JDBC support is provided by Spring applications
  15. How to Shutdown the Spring IoC container gracefully in applications
  16. Default initialization & destroy methods in Spring Framework
  17. How to implement Destruction callbacks in Spring Framework
  18. How to use Initialization callbacks in Spring Framework
  19. What are Custom Scopes in Spring Framework
  20. Defining global session scope in Spring framework
  21. How to use session scope in Spring
  22. How to use request Scope in Spring
  23. How to select Initial Web Configuration to effect the scoping of beans at the request
  24. How to define Bean Scope
  25. How to exclude a bean from being available for auto wiring
  26. What is auto wiring and it’s advantages in Spring Framework
  27. How to make Beans Lazily-instantiating beans
  28. Look-Up Method Injection and it’s usage in Spring Framework
  29. What is need of method injection
  30. How to use compound property names in Spring
  31. How to use XML-based configuration metadata shortcuts
  32. How to use Idref Element and its advantages
  33. How to use Inner bean definitions via nested bean elements
  34. How to use Collection in Spring
  35. How to set null value in Springs configuration file
  36. How to resolve Constructor argument in Spring
  37. Whether to make Bean Singleton or non Singleton (prototype)
  38. Sample Spring Application
  39. What is weaving in Spring Framework
  40. How to decide whether to use Setter injection or constructor injection in your code
  41. How to use Setter Injection and Constructor Injection
  42. What are dependency injection and its advantages
  43. Instantiation using an instance factory method
  44. Addition program that displays the sum of two numbers
  45. Interacting with the Java Garbage Collector
  46. Primitive data types of Java
  47. A Fibonacci printing program
  48. SimpleBean class
  49. Using SAXParserFactory for parsing XML
  50. Using XMLOutputStream
  51. ObjectOutputStream Example
  52. JDO - defining the persistence using metadata
  53. JDO - Retrieving a persisted object
  54. JDO - persisting an object
  55. JDO - getting a PersistenceManagerFactory
  56. JSP - Application object example
  57. JSP - PageContext example
  58. JFileChooser example (selecting a directory)
  59. Localize JFileChooser
  60. JOptionPane (customizing)
  61. JOptionPane dialog (Localizing)
  62. MessageBox example
  63. JScrollPane with HTML
  64. JWindow/JFrame with boarders
  65. Java Swing class capturing output to the console
  66. JFrame maximizing
  67. JFrame (closing under a condition)
  68. Printing default Swing values
  69. Swing - catching click button event
  70. AWT - catching click button event
  71. ActionEvent example
  72. Using GTKLookAndFeel
  73. Swing - Look and feel
  74. Swing - Changing component default font
  75. Getting the host of the applet
  76. Applet with scrolling status line
  77. Opening frame/page options
  78. Applet - enter URL and view the page
  79. Applet - Displaying an HTML page with a selected resolution
  80. Mime type of a file from web
  81. Mime type of a file
  82. Unzipping
  83. Viewing contents of zip file
  84. Creating ZIP files
  85. Check if a web page exists or not
  86. Checking of file was modified on the server
  87. Getting all the iterfaces available on a workstation
  88. Getting name/ip of a machine
  89. Getting network card address in Java 6
  90. Example - File Dialog
  91. Allowing only numeric values in a TextField
  92. Transforming XML to HTML
  93. Validate/Convert a number using the current Locale()
  94. Displaying COPYRIGHT and REGISTERED characters
  95. Global constants
  96. Accessing inner class from outer class (an example)
  97. An example of accessing outer class from inner class
  98. Inner class accessing outer class
  99. Create, compile and call a Java source dynamically
  100. Launching an application from another application dynamically
  101. Launching an application from another application using thread
  102. Getting variable value from a variable name
  103. Object from String (calling method dynamically)
  104. Object from String
  105. Dynamically calling a method with 2 argumens
  106. Dynamic method calling
  107. Using Enumeration to iterate through Hashtable
  108. Hashtable example
  109. Getting the host from where the Applet was loaded
  110. Inserting current date into a DB table
  111. Using escape sequence to find rows begining with %
  112. Using escape sequence with like clause (%)
  113. Using escape sequence with like clause (_)
  114. ResultSet to XML
  115. Verifying existence of a table in a db
  116. Enabling JDBC logging (example)
  117. Getting current date using dual (Oracle)
  118. Specifying the character set while connecting to the database
  119. Reading data form Excel using Jdbc (example)
  120. Reading excel worksheet
  121. Accessing MS Access using DSN less connection
  122. SQL error handling example
  123. Handling SQL Errors and Warnings
  124. ResultSet to HTML
  125. Listing tables of a database
  126. ResultSet to JTable
  127. Getting number of records (JDBC 2.0)
  128. Getting row count
  129. Callling stored procedures with input/output parameters and ResultSet
  130. PreparedStatement - inserting date
  131. CallableStatement example
  132. PreparedStatement with java.sql.Date
  133. Timestamp in SQL format
  134. Using java.sql.Date
  135. Using JDBC to connect to ORACLE database
  136. Using PreparedStatement to insert image into database
  137. Retriving image from database
  138. Checking ResultSet (second approach)
  139. Empty ResultSet
  140. Deleting records from database table using PreparedStatement
  141. Modifying data in database table using PreparedStatement
  142. how to get layout information from pdf using java
  143. Writing to a file (at the end)
  144. Reading Float values from a file
  145. Extracting JAR file
  146. Applet - reading text files packed into JAR file
  147. How to read a text file from a Java Archive File
  148. Concatenation file contents
  149. Adding file contents to Choice component
  150. Reading a file from Applet (BufferedReader)
  151. Reading file contents (BufferedReader)
  152. Inserting string with slash character into database
  153. Using PreparedStatement for insertion
  154. Inserting data containing quotes into DB
  155. Inserting into a table (Example)
  156. Fetching rows from DB
  157. Using Prepared Statement
  158. Using JDBC-ODBC bridge
  159. Using Runtime to execute external commands
  160. Getting tokens using Scanner class
  161. Getting disk label
  162. Redirect to null device
  163. Writing to serial port (com1)
  164. Using StreamTokenizer to take input
  165. Printing (no dialog)
  166. Sending text to printer
  167. Getting Exception message into a String
  168. Sending output to a Frame
  169. JSP pages with no caching
  170. Launching Applet from a JSP page
  171. JSP/Servlet – getting root directory
  172. JSP – getting list of directories
  173. JSP page to compile all the JSP pages in a directory
  174. JSP using EJB
  175. JSP methods example
  176. Reading web applicaiton properties from JSP/Servlet
  177. JSP - using connection cache
  178. JSP- Binary output stream
  179. JSP – getting IP address
  180. String manipulation example (Title case)
  181. Locale example
  182. Stack push/pop/peek operations
  183. Using SimpleDateFormat
  184. No fo days between two dates
  185. GetDayName
  186. Comparing dates
  187. Servlet - Checking the existance of a field in HttpServletRequest
  188. Dispatching request to another Servlet
  189. Using bean to send parameters from one Servlet to another
  190. Servlet sending the file (setting header)
  191. Showing ResultSet in HTML table
  192. Servlet - testing cookies
  193. Asking for password from a Servlet
  194. Getting all the cookies from Servlet
  195. Setting cookie from doPost
  196. Example of doGet
  197. Finding arguments of Servlet
  198. Deleting files after filtering the extensions
  199. Reading an already opened file
  200. Reading int values using BufferedReader
  201. Sample ANT Script
  202. Singleton Pattern
  203. Getting class field information using Reflection
  204. Getting method names using Reflection
  205. Example of ArithmeticException
  206. Computing Fibonacci numbers recursively
  207. Writing UTF to file using writeUTF
  208. Date Validation Script
  209. BufferedImage to Byte
  210. Printing ASCII values of characters
  211. String trim
  212. Iterating through a HashSet
  213. No duplicates allowed in Sets
  214. Number of updated records
  215. ResultSet example
  216. Getting warnings reported by Connection object
  217. Calculating the DB connection time
  218. Iterating through ArrayList using For loop
  219. Iterating through ArrayList
  220. MixedTypeInput example (Scanner)
  221. Using Scanner with regex.MatchResult
  222. Reading pattern using Scanner class
  223. Reading a line from console using Scanner class
  224. Using Scanner class to read int
  225. Data array to file
  226. Tomcat plugin for Eclipse
  227. Reading/Writing a File using byte array
  228. Creating a File object in Servlet
  229. Servlet with a Form/Dropdown
  230. Reading a File into ByteArray
  231. Iterating through result set in JSTL
  232. Using sql:query tag
  233. Reading cookies in JSP
  234. JSP cookies example
  235. Date/Time Servlet
  236. Traversing a directory
  237. Listing file system from root directory
  238. Iterating through result set in JSTL
  239. Using sql:query tag
  240. Using sql:update tag
  241. Adding taglibs in JSP
  242. Initializing variables using constructors
  243. Calculating sin of a double value
  244. Listing subdirectories/files with filter
  245. Listing subdirectories/files
  246. Deleting an directory/subdirectory/files
  247. Deleting an empty directory
  248. Static function to get current working directory
  249. Removing all the instances of a given text form a String
  250. Using PersistenceManager and PersistenceManagerFactory