What is Ideal Design of Class?
Answers were Sorted based on User's Feedback
Answer / venkat
declare variables as Private and methods which accesses
variables as public.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ershad md sk
Ideal Design of Class is First identity Different Business
Objects and identity Business Data & Business Methods on
which u r working on............Think U are working on
SHAPE class think shape is an object and Draw & erase are
business methods which u should Operate ON..And shape has
Different data objects like Square,Rectangle
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the main differences between the java platform and other platforms?
Explain the meaning of java applet.
When does an object becomes eligible for garbage collection in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Why are global variables used?
What is the difference between == and === javascript?
How can you set an applet’s height and width as a percentage?
we cannot create an object of interface but we can create a variable of it
When you Click a Button, What event will be fired?
Explain the difference between association, aggregation and inheritance relationships.
What about main thread in java?
Why synchronization is important?