Sri Rao

Greenhorn
+ Follow
since Dec 10, 2002
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 Sri Rao

I am new to IBM Websphere. i have develop entity beans and jsp file(clinet). i want to deploy this files. can u pls tell mehow to deploy this files in detail?
thanks in advance
Sri
20 years ago
i want to know the difference between two dates without using any classes(just raw code).like 13-07-03 - 15-07-03 = 2.
can u help me with example?
thanks in advace
20 years ago
i want to know the difference between two dates without using any classes(just raw code).like 13-07-03 - 15-07-03 = 2.
can u help me with example?
thanks in advace
20 years ago
can u tell me the links for tips(Anupam Sinha, Kim Hackett)
Thanks in Advance
20 years ago
Thanks very much Marlene Miller
can any body tell me good site for garbage collection
Thnaks very much Rajeshwari
Regards
Sri
here is the question
public interface Material
{
}
public interface Instrument{
public void play();
}

public class Piano implements Instrument, Material {
public void play() {
System.out.println ("Playing the piano");
}
public static void main(String[] args) {
Instrument inst = new Piano();
inst.play();
}
}
Answers
1. Compilation succeeds, no output is produced.
2. Compilation succeeds, the output is Playing the Piano
3. Compilation fails, Piano cannot implement 2 interfaces
4. Compilation fails, interface Material does not have any methods defined
5. Compilation fails, interface Instrument does not have an implementation for the play() method

the answer is 2,
but i am getting the error
Piano.java:1: class Material is public, should be declared in a file named Mater
ial.java
public interface Material
^
Piano.java:4: class Instrument is public, should be declared in a file named Ins
trument.java
public interface Instrument{
^
2 errors
can u help me?
thanks...
How much time it will take to prepare for certification from scratch?
i am getting problem,when i click to a link,its opening in same page, but i want to open in another page.can any body help in this regard?
regards/Sri
21 years ago
Shweta,
Congrats !!!
Can you please send me the pdf file to
srikanth@k7mail.com
Thanks Much
21 years ago
Thnaks Sri for your help
public class MyClass{
long var;
public void MyClass(long param) {var=param;}//1

public static void main(String args[]){
MyClass a,b;
a = new MyClass(); // 2
b= new MyClass(5); // 3
}
}
Here i am getting compilation error at 3, why not getting complitation error at 2 as this program dont have default constructor, can anybody help me?
thanks very much Marilyn de Queiroz
sheriff ,Jim Yingst
21 years ago