Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:04:29+00:00 2026-06-02T00:04:29+00:00

Is everything in Java an object, the way it is in Ruby? Books, tutorials,

  • 0

Is everything in Java an object, the way it is in Ruby?

Books, tutorials, everything states “everything in Ruby is an object”, but is that common for object oriented languages?

Is everything an object is Java as well, or is object oriented just a paradigm of programming, and it doesn’t mean that everything is or evaluates to an object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:04:31+00:00Added an answer on June 2, 2026 at 12:04 am

    No.

    As far as values go, the “primitive types” (int, bool, float, etc.) in Java are not objects. In Ruby they are objects. (In some Ruby implementations fixnums are “value types” internally for performance, but externally they are treatable as “real” objects that have methods).

    In addition, there are other things that are objects in Ruby that are not objects in Java such as classes. (Actually, Java exposes these as Class as well, but in a different sense.)

    There are some things that are not objects in either language, such as variables and methods. (Although in Ruby it is easy to get an object that represents a given method.)

    Anyway, I think the bigger picture is that the Object Oriented programming paradigm presents a way to group data and operations on said data. (This is generally done through instance methods, as in Java and Ruby, although it might also be done through multiple dispatch and other languages, like Haskell which is “non-OO”, offer alternative approaches to this task.)

    Often times the definition of “OO” also includes “inheritance”, “encapsulation”, “abstraction”, and other silly textbook terms, but the usage and patterns of different “OO” languages can vary greatly and overlap those found in “non-OO” languages 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Java applet that loads native code through JNI. Everything worked just
At work we do almost everything in Java and perl, but I wanted to
Currently I am working with Java and its object oriented-design aspects (I also work
I have a C# client and a java server. I have data object that
I have a Java class that is stored in an HttpSession object that's serialized
I'm still new to programming/Java/Android so I'm trying to understand everything I do and
I am making a C# client / Java server chatroom, and everything works fine
I am working on an Java application, and I'm setting the LookAndFeel. Everything of
How can I change the current working directory from within a Java program? Everything
Greetings everyone! I programmed GUI Application using Java Swing under Windows. Under windows everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.