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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:09:10+00:00 2026-05-24T01:09:10+00:00

Are there currently (Java 6) things you can do in Java bytecode that you

  • 0

Are there currently (Java 6) things you can do in Java bytecode that you can’t do from within the Java language?

I know both are Turing complete, so read “can do” as “can do significantly faster/better, or just in a different way”.

I’m thinking of extra bytecodes like invokedynamic, which can’t be generated using Java, except that specific one is for a future version.

  • 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-24T01:09:11+00:00Added an answer on May 24, 2026 at 1:09 am

    As far as I know there are no major features in the bytecodes supported by Java 6 that are not also accessible from Java source code. The main reason for this is obviously that the Java bytecode was designed with the Java language in mind.

    There are some features that are not produced by modern Java compilers, however:

    • The ACC_SUPER flag:

      This is a flag that can be set on a class and specifies how a specific corner case of the invokespecial bytecode is handled for this class. It is set by all modern Java compilers (where "modern" is >= Java 1.1, if I remember correctly) and only ancient Java compilers produced class files where this was un-set. This flag exists only for backwards-compatibility reasons. Note that starting with Java 7u51, ACC_SUPER is ignored completely due to security reasons.

    • The jsr/ret bytecodes.

      These bytecodes were used to implement sub-routines (mostly for implementing finally blocks). They are no longer produced since Java 6. The reason for their deprecation is that they complicate static verification a lot for no great gain (i.e. code that uses can almost always be re-implemented with normal jumps with very little overhead).

    • Having two methods in a class that only differ in return type.

      The Java language specification does not allow two methods in the same class when they differ only in their return type (i.e. same name, same argument list, …). The JVM specification however, has no such restriction, so a class file can contain two such methods, there’s just no way to produce such a class file using the normal Java compiler. There’s a nice example/explanation in this answer.

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

Sidebar

Related Questions

Is there a pure-Java equivalent to <jsp:forward page=... /> that I can use within
Is there a good tool that can help to reverse engineer Java classes to
Is there a way in Cocoa that is currently considered best practice for creating
Currently, I only know a way of doing RPC for POJOs in Java, and
I'm currently using a library for SSH within Java but it seems to be
I'm currently maintaining a small-medium sized java web application (using only plain JSPs/Servlets) that
Is there currently any easy way to set up a YAWS web server in
Currently there are 2 pages in a jsp file: one of them displays the
I am working on a project currently where there are SQL strings in the
Is there any API to get the currently logged in user's name and password

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.