Summary

We started off by discussing the difference between strings and variables, and how they appear in a code. We then saw what methods are and how can they be used to write our code. After that, we discussed the importance of classes and objects, and how they are used to call methods that execute a class. We learned how to allocate memory to an object and call the method of that object while executing the code.Finally, we learned how to access a method that is present in another class using objects.

In the next chapter we will learn more about strings and have a look at the String class.

Get Hands-On Automation Testing with Java for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.