sri123

Greenhorn
+ Follow
since Aug 14, 2000
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 sri123


hi,

somebody told me that syllabus is changing.
advanced java also included in syllabus.
is it correct or not?. and also give me fee details.
please reply me all these details.
thank you
sri.

hi everybody,
how to run jar file in beans.how to copy the our own
file into bean box.please help me.
thank u
22 years ago

hi everybody,
What is true of the listeners?

A. the return type is boolean
B. most components allow multiple listeners to be added.
C. a copy of the original event is passed into a listener method
given answer is only b.
2)Which statements are true about listeners?

A. The return value from a listener is of boolean type.
B. Most components allow multiple listeners to be added.
C. A copy of the original event is passed into a listener method.
D. If multiple listeners are added to a single component, they all must all be friends to each other.
E. If the multiple listeners are added to a single component, the order [in which listeners are called is guaranteed].
the given answer is b and c.
in first question c and second question c is same.
why they given in 1 is wrong and 2 is correct.
actually what is the correct answers for this.
plese help me.
thank you
sri.

hi,
1 if ((s !=null) | ( i =s.length()))
2 if ((s ==null) | ( i =s.length()))
3 if ((s !=null) | | ( i =s.length()))
4 if ((s ==null) | | ( i =s.length()))


Select all best answers?

A. 1
B. 2
C. 3
D. 4
here answer is a,b,d.but i think a,b,c.
please explain me.tomorrow i have exam.
thank u
sri.
hi,
public class Test {
int c = 0;
public Test(int a, int b) {
c = b*(a/12);
}
public Test(int a){
c = a/12;
}
public Test(int a, int b, float c) {
<<statement>>
}
}


What statement should be entered to initialize c?
in exam we write this(a,b) or this(a,b);
please help me.
thanks
sri.
hi everybody,
if (a >4)
System.out.println("test1");
else if (a >9)
System.out.println("test2");
else
System.out.println("test3");


What will print 'test 2'?

A. less than 0
B. less than 4
C. between 4 and 9
D. greater than 9
E. none

given answer is e.but i think answer is d.
please explain me.
thanks
sri.

hi everybody,
class Parent {}
class DerivedOne extends Parent {}
class DerivedTwo extends Parent {}

Parent p = new Parent();
DerivedOne d1 = new DerivedOne();
DerivedTwo d2 = new DerivedTwo();
d2 = d1;

A. Illegal both at compile and runtime.
B. Legal at compile time, but may fail at runtime.
C. Legal at both compile and runtime
given answer is b.but i think ans is a.
2)class Parent {}
class DerivedOne extends Parent {}
class DerivedTwo extends Parent {}


Which of the following statements is correct for the following expression?
Parent p = new Parent();
DerivedOne d1 = new DerivedOne();
DerivedTwo d2 = new DerivedTwo();
d1 = (DerivedOne)d2;



A. Illegal both at compile and runtime.
B. Legal at compile time, but may fail at runtime.
C. Legal at both compile and runtime
given answer is a.i think it is b.
i am very confusing these two questions please explain me.
thanks.

hi everybody,
You have been given a design document for a veterinary registration system for implementation in Java. It states: "A pet has an owner, a registration date, and a vaccination-due date. A cat is a pet that has a flag indicating if it has been neutered, and a textual description of its markings." Given that the Pet class has already been defined and you expect the Cat class to be used freely throughout the application, how would you make the opening declaration of the Cat class, up to but not including the first opening brace? Use only these words and spaces: boolean, Cat, class, Date, extends, Object, Owner, Pet, private, protected, public, String.

i think answer is "public class Cat extends pet" is it correct or not.result is wrong.please correct me.
thanks.

hi everybody,

if exception is not thrown finally is printed.
next return value is printed or not.if possible give me
one example.
thanks.
gc

hi everybody,

how to know which line will be garbage collection.
please give me any two examples,one is garbage collected.
onother one is not.please any one help me.
thanks
sri.