ketan patel

Greenhorn
+ Follow
since Apr 27, 2001
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 ketan patel


Hi, Kapil.
I am preparing for SCJP EXAM and I am varied about I/O.
So, Thanks a lot.
--------
ketan patel
again thanx.
Hi Friends.
I have lost some URLs addresses during drive formating on my old PC.CAN ANYONE GIVE ME URL about Java I/O resources atIBM?
Tahnk you.
-------------
ketanpatel
Hi,

I think your Q. is about method overriding.As instance variables
can not ovrerridden,It is the class type of obj.Ref which determines
instance variable it refers.
So,c.gearRatio will give value 8.
For method Overriding,It is type of Object(Here new SportsCar())
detdetermines instance method should be called.So method in class SportsCar will be invoked.
Hi,
To satisfy method overriding it must have identical method signature & return type.
To satisfy method overloading,It must differ in signature(i.e.name & formal parameter nos,order/type of para.).Only return type is not enough.I think it is nither method overriding
nor method overloading.


------------------
Hi,
; is used for termination of statement purpose.; means blank statement.So compiler doesn't give any error.Also if it is like
this ;;;;; . compiler doesn't give any error(see K.A.M).
------------------

Hi,
Look at option 2. If it is class it can implements one or more interfaces using implements clause.But option uses extends clouse
So,option 2 is wrong.
------------------
Hi friends.
I want to learn Linux.Can anyone guide me about books,Links
about Linux.
thanks.
--------
ketan patel.
------------------
19 years ago

Hi Mark &other friends at javaranch.
Sory for being late.I forgot to thanking you.

thank you to provide URL on my Q.
------------------
19 years ago

Congratulations Padmini.
I am regular visiter of this site (As i am preparing for SCJP) AND every day i was eagerly looking for your Q.to this FORUM. Because some of your Qs.were really interesting.So,thank you very mutch.
-------
padmini, can you tell me more about threads in your SCJP
OR same exp. from any of your friends who cleared SCJP?
------
again thanx.
ketan patel
------------------
19 years ago

Hi Laxmi,
From Java API�s Object class description�
The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true).
As (sb1= = sb2) returns false, sb1.equals(sb2) also returns false.which is also applicable to sb1&ss1.


Hi,
constructor has no return type. But it has implicit type i.e.class type in which it is defined.
Hi Friends,

I am novice at this forum. Can you tell me what is Java 2 Micro Edition?
19 years ago

Hi,
In Java,chaining of constructors always occurs from subclass to superclass.Subclass should invokes cons. of its superclass and so on(i.e.upto root of class)So you must provide a way for chaining constructors if their is non default cons. in superclass.
------------------
Hi Javaranchers,

Regarding to Infinity & -Infinity .
I think relative Precedence of - (Unary) & / (Binary) will clear doubt about this Que.
When compiler will reaches to exp. 5.0f / -0; , It will consider �0 first and as There is no such -0 integral litral it will take it as 0.And then widening conversion will takes place.
i.e.
1) -0 ---> 0
2) 5.0f /0
3) 5.0f /0.0
will give + infinity.
Am I right ? Ple tell me . I m keen for reply.
Ketan Patel

------------------
Sub: Unicode & Equality
Hello Friends;

Can you explain me following:
In K.A.M, In Table 2.7 (p25) Unicode values are same for both ,char.litral �1�& integer litral 1
WHILE In 3.9(p59) Line:- boolean compare =�1�==1;//false
Why? . Thanks.
------------
Ketan Patel

------------------