Java Rocks!!!

World of tricky Core Java Q and A Covering Object Oriented Analysis and Design, JVM Internals,Java Language Fundamentals,Datatypes,Keywords,Operators and Assignments,Identifies,Declarations and Modifiers, Conversion,Casting and Promotion, Flow control,Assertions, Exception Handling and Garbage Collection,Objects and Classes), Basic Packages and their classes,JDBC,JFC Swing,Java Server Pages (JSP), Servlets,EJB,JMS,JNDI etc and Open source technologies like Struts,Hibernate,Spring etc

Wednesday, August 10, 2011

How to add BASIC Authentication into HttpURLConnection?

›
Here is one sample. ... try { //Create connection url = new URL(targetURL); connection = (HttpURLConnection)url.op...
1 comment:

How to Use JDBC Java to Create Table?

›
his example demonstrates how to create a table in JDBC in MySQL database. import java.sql.Connection; import java.sql.DriverManager; import ...

How to read input from console (keyboard) in Java?

›
There are few ways to read input string from your console/keyboard. The following smaple code shows how to read a string from the console/k...

Why we call start() method which in turns calls run method, why not we directly call run method ?

›
In both the above examples, the run() method is the most important method in the thread classes, it is also the only method that we need to ...
2 comments:
Monday, August 01, 2011

Java JDBC Transaction Isolation Levels

›
Generally speaking, as the isolation levels become more restrictive, the performance of the system decreases because transactions are preven...
›
Home
View web version
Powered by Blogger.