• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java

 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be its very simple question , but still I want to know why everything in java is object ?

Thanks ,
Satya
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It isn't. Primitives are not objects

And please choose better subjects than simply "java". Thanks.
 
vinayak jog
Ranch Hand
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic