This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java" Watch "java" New topic


S Majumder
Ranch Hand

Joined: Jun 03, 2009
Posts: 346
May be its very simple question , but still I want to know why everything in java is object ?

Thanks ,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63534

It isn't. Primitives are not objects

And please choose better subjects than simply "java". Thanks.

[Asking smart questions] [About Bear] [Books by Bear]
vinayak jog
Ranch Hand

Joined: Apr 01, 2011
Posts: 81

Because java is object oriented language and every thing represented in objects, close to real world, this helps us to solve real world problems.
Even for primitive data types we have object representations (Wrapper classes).
I agree. Here's the link:
subject: java
It's not a secret anymore!