Suni Kr

Greenhorn
+ Follow
since Oct 14, 2004
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 Suni Kr

Hi,
Can someone please tell me which concept/concepts of OOP's does the following program contain.

public class TestInterface {

/** Creates a new instance of testInterface */
public TestInterface() {
}
public static void main(String[] args) {
FirstClass x = new FirstClass();
SecondClass y = new SecondClass();
Interface1 a = (Interface1) x;
Interface2 b = (Interface2) y;
System.out.println(a.getValue());
System.out.println(b.getValue());
a = (Interface1) y;
b = (Interface2) x;
System.out.println(a.getValue());
System.out.println(b.getValue());
}

}

interface Interface1{
public String getValue();
}

interface Interface2{
public String getValue();
}

class FirstClass implements Interface1, Interface2{
public String getValue(){
return "FirstClass";
}
}

class SecondClass implements Interface1, Interface2{
public String getValue(){
return "SecondClass";
}
}
15 years ago
How can I find it? Iam using oracle 10g.
Is it the same as system identifier(SID)?
Thank you.
15 years ago
Hi,
Could someone please tell me what is the servername and domain in the following.

Creating a Datasource in WSAD...
Name: URL
Type: java.lang.String
Value: jdbc racle:thin:@servername.domain.com:1521 atabaseName

Thank you,
Suni.
15 years ago
Hi Brenda,
I just followed the HFEJB book and did some online free mock exams. I did not use WSAD. But it is always good to practice by doing some examples.

Suni.
[ January 31, 2005: Message edited by: Suni Kr ]
Hi everyone,
I have recently given SCBCD(EJB 2.0) for J2EE1.3. I prepared for 4 weeks(no working experience in EJB's) and scored 81%.I want to take Brainbench Java-EJB or Java-EJB 2.0 exam.
Could some one please tell me which of the two Brainbench exams is closer to the SCBCD and will I need any preparation for the Brainbench exam and if so how many days.

Thank you.
Suni.
[ January 31, 2005: Message edited by: Suni Kr ]
Hi everyone,
I know that variables declared inside a service method(local variables) are thread safe. Can some one give me an example and explain how are the variables thread safe.

Thank you,
Suni.
15 years ago
Thank for the reply Nandini.I did all that and now my variables are set fine but when I compile the servlet using

"javac -classpath C:\ApacheSoftwareFoundation\Tomcat5.0\common\lib\servlet-api.jar:classes:. -d src\com\example\web\BeerSelect.java"

I get the following error messages:

"src\com\example\web\BeerSelect.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
src\com\example\web\BeerSelect.java:3: package javax.servlet does not exist
import javax.servlet.http;
^
src\com\example\web\BeerSelect.java:4: cannot resolve symbol
symbol : class io
location: package java
import java.io;
^
src\com\example\web\BeerSelect.java:6: cannot resolve symbol
symbol : class HttpServlet
location: class com.example.web.BeerSelect
class BeerSelect extends HttpServlet{
^
src\com\example\web\BeerSelect.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{"

And some more similar errors. Please advise me what to do and also tell me what does "...servlet-api.jar:classes:." mean in the above command.
thank you,
Suni.
15 years ago
Hi Joyce ,
I have set the variable PATH = C:\java-2sdk1.4.2_05\bin but it doesn't show it when I say 'echo %PATH%'.
How can I set it from the DOS window.(there are already some values to the PATH variable so how can I add to it a new value.)

thank you,
suni
15 years ago
Iam unable to compile my servlet on tomcat.
When I use the javac command it says,

"'javac' is not recognized as an internal or external command,
operable program or batch file."

I have set JAVA_HOME = C:\java-2sdk1.4.2_05
Please tell me what is the problem.
15 years ago
How do you deploy servlets on tomcat(installed on windows)?what is the command?
15 years ago
JSP
How do you deploy servlets on tomcat(installed on windows)?what is the command?
15 years ago