Raja seemakurthi

Greenhorn
+ Follow
since Jun 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raja seemakurthi

why am i getting compile time error saying, unreachable statement in line number //1
please explain.

Christophe Verré wrote:From Java 5, you can import static variables from a class that way. It means "Import all static variables from the Date class". It would have been an error in Java 1.4.



that's good.
i know that import static java.package1.class1.*; is a valid statement, but what about if a class is not having any static fields then import java.package1.class1.*;
works fine? is it won't give any compile time errors? please clarify
14 years ago


some where i have seen that the above import statement is not a valid statement, we should get a compile time error.
but it is compiling perfectly.

am i wrong?
please provide your comments.

Thanks,
Raja
14 years ago

I got this question from the following URL.
http://www.valoxo.ch/jr/mocks/mock01a.html

Already i put this link in my first request itself.
14 years ago
let me say sorry for asking this kind of question.
i have gone through the API and read the related functions used in the code.
i ran the file and understood the output.

Anyways thanks for your comments and help also.
wish me all the best for certification exam.
14 years ago


i got this question from the following URL.
http://www.valoxo.ch/jr/mocks/mock01a.html

we can use add() for adding objects like Integer,Float class into Vector. According to my knowledge the output should be [1,2,0,2].
Am i wrong? please guide me.
14 years ago
While compiling the following code, i am facing some problems. So any one can tell me why this is not getting compiled?

import java.io.*;
public class Question05 {
public static void main(String[] args) {
Question05Sub myref = new Question05Sub();
try{
myref.test();
}catch(IOException ioe){}
}
void test() throws IOException{
System.out.println("In Question05");
throw new IOException();
}
}
class Question05Sub extends Question05 {
void test() {
System.out.println("In Question05Sub");
}
}
14 years ago
import java.io.*;
public class Question05 {
public static void main(String[] args) {
Question05Sub myref = new Question05Sub();
try{
myref.test();
}catch(IOException ioe){}
}
void test() throws IOException{
System.out.println("In Question05");
throw new IOException();
}
}
class Question05Sub extends Question05 {
void test() {
System.out.println("In Question05Sub");
}
}
14 years ago
hi all,

i need to find out that what are required jars for servlet compilation.
while compiling my servlet class i am getting several errors.
can any one tell me where i was wrong?
and tell me that do i need to set classpath for this? if yes, please tell me how?


and my web.xml file is
15 years ago
yes, i mean that.once all fields are validated then only the data is supposed to be submitted to database.

but my doubt is....... what should be written in form action attribute? and what should be the form field for submit, is it submit button or simply a button? then what should be the java-script method? is it onsubmit() or onclick()? could you help me to get solution?

one more thing i required is, how both actions will be done at a time? like..clicking on submit-button/normal button and sending the details through form action to other java class. how both actions can be done at a time?
15 years ago
even i tried class name with the package name also.
but i want to know that is it possible to validate the data entered by user and then forward the data to java class to submit into the database? by clicking on submit button. and form action="FDTest.do" is it ok? or need to change it?
15 years ago
how one can validate the HTML form fields before submitting them to database.
my scenario is:-

In html page,there are some form fields like name,password,age,email and one submit button also.When i click on submit button all the form fields are supposed to get validated thru java-script function.In the form action="/FDTest.do" tag all the details entered by user are supposed to store in Database for that, code is written in 'FDTest.java' file.

And in 'web.xml' file
is given.

any thing is wrong in this code?

and is there any other way to map the url-pattern with servlet class?
and is it necessary to give the same string at form action="XXX" and url-pattern XXX.

please let me know that as soon as possible.
15 years ago
i want to know that is this possible to validate the form and submit the values to an servlet at a time?
if possible let me know the same.
15 years ago
hi all,

do anybody has a copy of java 1.5 API softcopy, which is downloadable.
i need it urgently,please help me.
16 years ago
yes, exactly i want that only.

he asked me whether we can return a List type from a method.
later he asked me other quesstion, ie.... if a method can return an interface type then , is it feature of OOPS ar Java?


i said this is OOPs feature only.
16 years ago