Amit Madan

Ranch Hand
+ Follow
since Dec 20, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Amit Madan

i am using spring with hibernate.
i have maped one been with hibernate mapping and using date as a one property.
when i am updating date it is giving me error
unparsable date

please help me how can i configure date formate in hibernate mapping

thanks
amit
i am trying to configure JavaMonitor example provided by sun to monitor event in swing app.
but i am not able to configure it please help me.
http://java.sun.com/products/jfc/jaccess-1.3/doc/JavaMonitor.html
thx
amit
18 years ago
i am new to weblogic can anybody provide sample app for struts ejb weblogic with explaination
thx
amit
19 years ago
i am using DynaValidatorForm my validation is working but not show any message with html:errors why it is so plz guide me
thx
19 years ago
i am also trying to configure eclipse with weblogic 8.1
but after i am not getting weblogic option in costomize perspective
i have read this in servletprogramming book.
" each registered name for servlet is associated with one instance of the servlet."
plz guide me in details what is mean by "registered name " .
thx
20 years ago
hi friends
i am developing a site.i couldn't understand how can i secure a jsp page that can't open directly
i am using tomcat server for it.
please help me.
thanks
amit
22 years ago
JSP
Hi all
please guide me how can i upload my website which is based on ejb tech. on the internet.please give me site URL which explain it.
thanks
Amit
Hi all
i have read in a book that
Sequencer.getNextNumber(protocol) can be use to get current position of database but when i use it it won't run is there any other mthod for it.
please help me.
thanks
Amit
Hi
please solve my query about SCJP Exam.
if i mark some questions in Exam then at the time of final completion i have to unmark them or it will ok without unmark them.
befor line d: first---->ag[0]
after line d: first---->null & nothing refers to arg[0]
hence at this time it is eligible to gc.
Amit Madan
run this code you will get whatever you want
public class example {
int i[] = {0};
public static void main(String args[]) {
int i[] = {1};

System.out.println(change_i(i));
}
public static int change_i(int i[]) {
int j[] = {2};
i = j;
return i[0] ;
}}
run this code and you will get difference
public class Q{
public static void main(String arg[]){
S2 obj=new S2();
System.out.println(obj.s);// line-1
obj.disply();// line-2
}
}
class S1{
String s="S1";
void disply(){
System.out.println(s);
}
}
class S2 extends S1{
String s="S2";
}
Amit
Hi
here m1 & m2 are two different object & when we compair two object with equals it check object not state.
so there m1 & m2 are different object hence always print "No".
Amit
public class Test11 extends Thread
{
static Object obj1 = new Object();
static Object obj2 = new Object();
public void m1()
{
synchronized(obj1)
{
System.out.print("1 from m1");
synchronized(obj2)
{
System.out.println("\t 2 from m1");
}
}
}
public void m2()
{
synchronized(obj2)
{
System.out.print("2 from m2");
synchronized(obj1)
{
System.out.println("\t 1 from m2");
}
}
}
public void run()
{
m1();
m2();
}
public static void main(String[] args)
{
new Test11().start();
new Test11().start();
}
}
When i run this code each time output is(even if run in different dos windows)
1 from m1 2 from m1
2 from m2 1 from m2
1 from m1 2 from m1
2 from m2 1 from m2
it means d option is correct
please explain
Amit