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 8019437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:23:14+00:00 2026-06-04T21:23:14+00:00

First of all my understanding about scripting language after reading some stuff on web,

  • 0

First of all my understanding about scripting language after reading some stuff on web, is we can classify as scripting language which we user can run straightaway without need of compiling. Recently i worked on opensource product xwiki where I saw they are using groovy as scripting language i.e from user interface I can write small program and once I save it, it gets compiled and executed at back end. How they are doing it is simply passing the program as string and then compile and run it with groovy compiler. If this way groovy can be treated as compiling language because for user experience is he does not have to compile the code and run on the fly (though internally it also get compiled in to byte code).

If that is true we can also achieve the similar stuff with java too i.e

Process process1 = Runtime.getRuntime().exec("javac "+stringContainingProgram);

and the get the compile code from input stream than run it .

Can i say in this aspect we can treat java as scripting language?

  • 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-04T21:23:15+00:00Added an answer on June 4, 2026 at 9:23 pm

    What you have in your example is not Java. It is an expression language with a Java-like syntax. In real Java, a declaration has to be embedded in a class or method.

    So based on that example, you can’t say that Java is a scripting language. You could create a Java-like scripting language, but you need to address some usability issues. Like a different syntax for imports … if you want your scripting language to be interactive.

    Then there is the issue that a scripting language that requires the user to explicitly declare variables and their types is not what people want. Real Java is fundamentally a statically typed language with explicitly typed declarations. Scripting languages are (generally speaking) dynamically typed.


    Can i say java is not scripting language as it is not dynamically typed language?

    Not really. A “scripting language” is a language that is commonly used for scripting. That is just about all you can say. We can’t even clearly define what “scripting” is.

    There’s no fundamental law of nature that says you cannot do scripting with a statically typed language. It’s just … well … not what people want.

    Regarding compilation whether its just in time or ahead of time, It is not a criteria to qualify any language for scripting language. Right?

    That is correct. It doesn’t fundamentally affect the usability of a language for scripting purposes.

    Now, you might argue that if the user has to explicitly compile the scripts before running them, then that is not scripting. Perhaps that is something that separates “ordinary” programming from “scripting”. However, the risk in this is that we are implicitly constraining “scripting language” and “scripting” to fit/suit our particular biases.


    If you read through this and the other answers, we are all basically agreeing on one point. There is no useful definition of what a scripting language is, and therefore it is not possible to say if Java is one.

    A more answerable question is whether Java would be a good language for scripting … and my answer would be that I don’t think so.

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

Sidebar

Related Questions

After reading several posts on this matter, I thought I was all clear about
Possible Duplicate: Understanding NSString comparison in Objective-C Was just reading up about equality vs
I need to get more understanding about SSO on a web app against Active
I'm having some trouble understanding how codeigniters loading works. Well first you have the
In order to specify some things first: The user should be able to create
First of all,I'm not into web programming. I bumped into django and read a
first of all, sorry if that question is dumb but I´m a total newbie
First of all, what's the difference between: www.domain.com and domain.com Should I pay attention
First of all, I'm really new to the MVC Asp.Net ideology. I would like
First of all, I'm not sure if the title accurately describes what I'm referring

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.