Object Behavior

You already learned about object in previous tutorial. But you had many queries regarding objects - Why Objects? What’s its use? In previous tutorials you wrote codes in a class with main method.  Ever wondered if you can create methods(like bark(), hungry()) in a class other than the main method class. What we are trying to say … Continue reading Object Behavior

Data Type

In previous tutorial we read about variables. We also know that variables have size and type. Now, what’s that? Why bother about type and size? Java cares about type. It won’t allow you to do something bizarre and dangerous, like stuff a Chocolate reference into a Cold-drink Variable, or stuff an aircraft reference into a … Continue reading Data Type