Murly Kant

Greenhorn
+ Follow
since Oct 18, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Murly Kant

Hello! Pat Farrell, Thanks for your valuable response!
12 years ago
Hello Experts!
I run the following program on my system:

import java.util.Date;
import java.util.Calendar;
import java.util.Locale;
class x{
public static void main(String[] args){

Calendar c = Calendar.getInstance();
Date d = c.getTime();
System.out.println(d);

Calendar c2 = Calendar.getInstance(Locale.JAPAN);
Date d2 = c2.getTime();
System.out.println(d2);
}
}

printing d and d2 gives the same result, I don't understand then whats the difference between two? In which scenario I'll get different result.

Your valuable response will help me to understand the concept.
Thanks & Regards,
12 years ago
Hi Experts,
I am using 'apache-tomcat-6.0.26'. I have installed eclipse-jee-galileo-SR2-win32. And dropped a plugin 'com.sysdeo.eclipse.tomcat_3.2.0' eclipse\plugins folder. But when ever I am starting the tomcat It displays the following in red and my project do not get deployed.

Nov 24, 2010 1:16:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_16\bin;;C:\Program Files\EditPlus 2;C:\TCWIN45\BIN
Nov 24, 2010 1:16:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 24, 2010 1:16:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 570 ms
Nov 24, 2010 1:16:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 24, 2010 1:16:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 24, 2010 1:16:05 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 24, 2010 1:16:05 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 24, 2010 1:16:05 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 24, 2010 1:16:05 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 24, 2010 1:16:05 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Nov 24, 2010 1:16:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 914 ms


Thanks in Advance.
Murly
13 years ago
Hi Jack,
Christophe Verré is correct. Try this one

13 years ago
Hi Experts

I have a question in my mind why local variable don't have default value? why we must have to initialize them before using.

While instance variables always hold the default values. Can please any one give me good reason for doing that. It would be great if any one can provide me some good explanation for the same.


Thanks And Regards,
Murly kant.
13 years ago