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

  • SEARCH
  • Home
  • 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 6900823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:35:44+00:00 2026-05-27T07:35:44+00:00

I have a few doubts on java concepts: Is code reuse in java similar

  • 0

I have a few doubts on java concepts:

  1. Is code reuse in java similar to using functions as defined in other programming languages like C?

  2. Is Java robust by nature or does it provide a way to write robust code ?

Can anyone explain the above two. I have read a few books and I did not get a clear picture

  • 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-05-27T07:35:44+00:00Added an answer on May 27, 2026 at 7:35 am

    Code Reuse

    I do like to point you to some links on this topic.

    • A Realistic Look at Object-Oriented Reuse
    • What exactly is OO reuse?
    • Does OOP fulfill the promise of code reuse? What alternatives are there to achieve code reuse?
    • Is code reuse a lie?

    Some points about code reuse from the first link.

    Code reuse, the most common kind of reuse, refers to the reuse of
    source code within sections of an application and potentially across
    multiple applications. At its best, code reuse is accomplished by
    sharing common classes or collections of functions and procedures. At
    its worst, code reuse is accomplished by copying and then modifying
    existing code. A sad reality of our industry is that code copying is
    often the only form of reuse practised by developers.

    Robust

    Quoted from Core Java, Volume I, Fundamentals.

    “Java is intended for writing programs that must be reliable in a
    variety of ways. Java puts a lot of emphasis on early checking for
    possible problems, later dynamic (runtime) checking, and eliminating
    situations that are error-prone. . . . The single biggest difference
    between Java and C/C++ is that Java has a pointer model that
    eliminates the possibility of overwriting memory and corrupting data.”

    This feature is also very useful. The Java compiler detects many
    problems that, in other languages, would show up only at runtime. As
    for the second point, anyone who has spent hours chasing memory
    corruption caused by a pointer bug will be very happy with this
    feature of Java.

    If you are coming from a language like Visual Basic that doesn’t
    explicitly use pointers, you are probably wondering why this is so
    important. C programmers are not so lucky. They need pointers to
    access strings, arrays, objects, and even files. In Visual Basic, you
    do not use pointers for any of these entities, nor do you need to
    worry about memory allocation for them. On the other hand, many data
    structures are difficult to implement in a pointerless language. Java
    gives you the best of both worlds. You do not need pointers for
    everyday constructs like strings and arrays. You have the power of
    pointers if you need it, for example, for linked lists. And you always
    have complete safety, because you can never access a bad pointer, make
    memory allocation errors, or have to protect against memory leaking
    away.

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

Sidebar

Related Questions

I have a few doubts about this robots file. User-agent: * Disallow: /administrator/ Disallow:
Few basic doubts I have: 1. Is primary key column automatically indexed? 2. What
I have few different applications among which I'd like to share a C# enum.
We have few components like libraries dlls When initially created I ran the following
I am a newbie to Cocoa, I have a few doubts regarding NSImage. Question1:
I have few doubts regarding transparent AlertDialog box in android.I have created the alert
I have few doubts regarding the 3d Animation Image View on android.i have created
I have few doubts about maximum execution time set in php.ini. Assuming max_execution_time is
I have a few doubts about transaction receipt verifications: why is an external server
I have few doubts regarding Jython and will be happy if someone can clear

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.