Thursday, December 8, 2011

Java Crazy: Sleep() and Wait()

Java Crazy: Sleep() and Wait(): Difference between sleep() and wait() ? 1) wait() is a method of Object class. sleep() is a method of Thread class. 2) sleep() allows the ...

Java Crazy: Threads Example

Java Crazy: Threads Example: This programme checks the numbers between 0 to 100 and prints the numbers that are not divisible by 10 with a sleeping period of 500 millis...

Java Crazy: Structure of HttpRequest and HttpResponse

Java Crazy: Structure of HttpRequest and HttpResponse: The HttpRequest contains the following things. 1. Request Line ---- It will provide the information about the type of method called, the...

Java Crazy: Structure of HttpRequest and HttpResponse

Java Crazy: Structure of HttpRequest and HttpResponse: The HttpRequest contains the following things. 1. Request Line ---- It will provide the information about the type of method called, the...

Java Crazy: Retrieving form Parameters using HttpServletReques...

Java Crazy: Retrieving form Parameters using HttpServletReques...: Form parameters are key,value pairs where both are string objects. A Form parameter can be associated with single or multiple values. ...

Java Crazy: Statics Example

Java Crazy: Statics Example: class Test{ static int i=10; int j=20; public static void main(String[] args){ Test t1=new Test(); Test t2=new Test(); t2.i...

Java Crazy: Static in java

Java Crazy: Static in java: If you want print something in java without using static blocks or main method. class Google { static int i=m1();` public static...