473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Java Compiler and JVM.

dmjpro
2,476 2GB
does it happen ....???? that if a .class generated in lower version JAVAC and then it going to run by upper version of JVM.

could any one tell me the dtls story of these two key terms??
plz help.

kind regards.
dmjpro.
May 24 '07 #1
4 1240
JosAH
11,448 Expert 8TB
does it happen ....???? that if a .class generated in lower version JAVAC and then it going to run by upper version of JVM.

could any one tell me the dtls story of these two key terms??
plz help.

kind regards.
dmjpro.
Yep, code compiled with an older (earlier) version of javac runs on a newer (or
later version) jvm. The opposite is not true though.

kind regards,

Jos
May 24 '07 #2
dmjpro
2,476 2GB
plz tell me why??

is there any byte code specification mismatches or anything else????
plz help.

kind regards.
dmjpro.
May 24 '07 #3
JosAH
11,448 Expert 8TB
plz tell me why??

is there any byte code specification mismatches or anything else????
plz help.

kind regards.
dmjpro.
Nope, it's just a matter of newer classes that were not present in older releases
of the jre (the jvm plus the set of core classes). If your compiled code wants to
use those newer classes it can't run on an older jvm. The jvm explicitly checks
that when your class is loaded, whether or not your class does use newer
classes or not; the version number is out of sink (higher) than the number
supported by the jvm.

kind regards,

Jos
May 24 '07 #4
dmjpro
2,476 2GB
Now i seee ...... actually a JVM comes with some core classes.
right???

thanks a lot.
a confusion clearified.....
again thanks a lott.

kind regards.
dmjpro.
May 24 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
133
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
0
by: r035198x | last post by:
Inheritance We have already covered one important concept of object-oriented programming, namely encapsulation, in the previous article. These articles are not articles on object oriented...
1
by: hostel | last post by:
HTML PAGE <html> <body> <form action="second.jsp" method="get"> YOur name <input type=text name="name"> <input type=submit > </form> </body> </html>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.