2: Everything is an object | CodeGuru

2: Everything is an object

Bruce Eckel’s Thinking in Java Contents | Prev | Next is an object Although it is based on C++, Java is more of a “pure” object-oriented language. Both C++ and Java are hybrid languages, but in Java the designers felt that the hybridization was not as important as it was in C++. A hybrid language […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 1, 2001
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

is
an object

Although


it is based on C++, Java is more of a “pure” object-oriented


language.

Both


C++ and Java are hybrid languages, but in Java the designers felt that the


hybridization was not as important as it was in C++. A hybrid language allows


multiple programming styles; the reason C++ is hybrid is to support backward


compatibility with the C language. Because C++ is a superset of the C language,


it includes many of that language’s undesirable features which can make


some aspects of C++ overly complicated.

The


Java language assumes that you want to do only object-oriented programming.


This means that before you can begin you must shift your mindset into an


object-oriented world (unless it’s already there)


.

The benefit of this initial effort is the ability to program in a language that


is simpler to learn and to use than many other OOP languages. In this chapter


we’ll see the basic components of a Java program and we’ll learn


that everything in Java is an object, even a Java program.


Contents

|

Prev

|

Next
CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.