• Post Reply Bookmark Topic Watch Topic
  • New Topic

What happens if java.lang.object class is deleted?  RSS feed

 
Rajneesh Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well its a strange thought but in what way would it affect if we remove the object class in java...
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

What would happen if you remove the foundation from a tall building?
 
Rajneesh Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I understand what you are saying..but just wanted to know if there is any specific reason in having object as the foundation for java.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajneesh java:
Well I understand what you are saying..but just wanted to know if there is any specific reason in having object as the foundation for java.

See The singly rooted hierarchy from Eckel's Thinking in Java.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no java.lang.object class so nothing would happen if you delete it.
Java is after all case sensitive.
 
Rajneesh Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You very much Marc, I found my answer.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!