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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:30:58+00:00 2026-06-08T09:30:58+00:00

From Java Language Specification, Chapter 14, Blocks and Statements : The sequence of execution

  • 0

From Java Language Specification, Chapter 14, Blocks and Statements:

The sequence of execution of a program is controlled by statements, which are
executed for their effect and do not have values.

Some statements contain other statements as part of their structure; such other
statements are substatements of the statement. We say that statement S immediately
contains statement U if there is no statement T different from S and U such that
S contains T and T contains U. In the same manner, some statements contain
expressions as part of their structure.

What does it mean that statement S immediately contains statement U if there is no statement T different from S and U such that S contains T and T contains U.?

  • 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-08T09:30:59+00:00Added an answer on June 8, 2026 at 9:30 am

    Some statements contain other statements as part of their structure; such other
    statements are substatements of the statement.

    JLS #14.5 defines a statement as:

    Statement:

    • StatementWithoutTrailingSubstatement
    • LabeledStatement
    • IfThenStatement
    • IfThenElseStatement
    • WhileStatement
    • ForStatement

    So the only statements that can have substatement (= can contain other statements) are labels, if, else, while and for.

    The meaning then becomes clearer – if for example, S, T and U are defined as:

    if(a == b) //S
        if(c == d) //T
            doSomething(); //U
    

    Statement S immediately contains statement T which immediately contains statement U. But S does not immediately contain U.

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

Sidebar

Related Questions

From the Java Language Specification (third edition), section 3.10.5 : StringLiteral: StringCharacters opt StringCharacters:
From the Java Language Specification, Section 3.10.5 String Literals : Characters may be represented
What is the correct way of knowing operating system language (locale) from java code?
I am generating Java Code from my Domain specific Language (DSL). My Language is
From Java, I run a C++ app which logs its progress as it proceeds,
i am trying to implement DataOutputStream in php (DataOutputStream from java language) in java
I want to switch from Java to a scripting language for the Math based
I'm currently learning the C programming language (coming from Java) and I'm a bit
I have started to program in Java SE recently, and I noticed from many
I've learned programming from Java, then tried to learn one programming language per year,

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.