java - Is it a good programming practice to use Class.cast() method instead of (Class) casting? -
this question has answer here:
- java class.cast() vs. cast operator 5 answers
is programming practice use class.cast() method instead of (class) casting?
what pros , cons of 2 approaches. pitfalls of both of them?
i think (class) casting easier understand rather class.cast(). when using ide java eclipse, ide prefer generating (class) casting, way faster approach in coding.
Comments
Post a Comment