473,394 Members | 1,960 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,394 software developers and data experts.

C++ = VB 6.0 and JAVA = VB.net when comparing C++ with JAVA?

intruderX
When programing robots with java, how they program hardware with java? Can java do the port programming? Or it is done in some other way? for an example...

1). A basic O/S [created with C++] is running to work with hardware.
2). JVM runs on that O/S.
3). A Java program is running on the JVM, and it(JAVA) is used for the programming, as it become more user friendly to the programmers.

I need to know whether we can program hardware with just JAVA, without help of any other component which is created with an other language[C++].
I haven't used C++ ever.Even that person[that lecturer who was talking about mobile hacking with java] knows nothing about C++.They always say that JAVA is the developed version of C++ which has been developed, removing the all bugs of C++. So they discourage students to learn C++.The owner of that institute (A Doctor rated businessman),told us that JAVA has been developed by Sun Micro Systems,just like Microsoft guys developed VB.net, disposing VB 6.0.In his story,

1) C++ is treated in the same place of VB 6.0 and,
2) JAVA is treated in the place of VB.net.

Not with the technology,But with the importance of those languages.But I think C++ can't be disposed as they say,because it has it's unique usages.I need to know whether I'm correct or not in this matter.According to my idea,

1) JAVA is the best language for web and enterprise application programing as lot of communities has supported with technologies such as JSF,Hibernates and
EJB3.0,and the famous unique qualities of java,and people say it's much more user friendlier than C++.

2) C++ is supposed to be the best language for programing hardware.

I'm really confused because of the sayings of these people.Even though some of them hold Doctor rates, I suspect that they try to mislead us for economical profits.
I was tried to learn JSF, EJB3.0 and Hibernates myself, and I found EJB3.0 is a vast subject that takes time to learn.But that person told us that those each technology can be mastered with his single 5 hour seminar each.

I'm following JAVA from the basics again as I found my knowledge is so much irregular.And I'm willing to do SCJP on next January to get confirmed the accuracy my knowledge of the JAVA basics.

With a proper knowledge of the JAVA basics, do you think that it would be possible to Master those technologies within such a short period as he say?
Because according to my belief,without applying the theories in a practical situation in the industry,no one can master these things.[even those people haven't done that, in the industry as far as I know].

I would be much more obliged if you could kindly help me to shake off this chaotic situation .I need to know the truth.Anyway those people can't be trusted, as they have lied a lot of times for commercial benefits so far...!

Thanks again!!!!
Oct 20 '08 #1
8 2694
Laharl
849 Expert 512MB
I don't know much about enterprise-level Java (just "normal" Java without databases and beans and all that fun stuff) but C++ most definitely still has a place in the industry. Java hardware programming is possible (look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well), but I wouldn't care to do it.

Plus, their analogy is flawed. Tons of people still use VB6, even though Microsoft doesn't want to support it anymore.
Oct 20 '08 #2
I don't know much about enterprise-level Java (just "normal" Java without databases and beans and all that fun stuff) but C++ most definitely still has a place in the industry. Java hardware programming is possible (look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well), but I wouldn't care to do it.

Plus, their analogy is flawed. Tons of people still use VB6, even though Microsoft doesn't want to support it anymore.
Thank A lot for Your help!!!

Pointers are not supported in Java, and C/C++ is said to be supported.Some lecturers have told us that lot of Viruses are written with pointer support, and java cannot be used to create viruses as that concept has been disposed when creating Java.

Is this a weakness of Java, compared to C ? Or is this an improvement,that has been made purposely? And please tell me whether the JVM has been made with Just java, or C? I'm not aware of the good usages of pointer concept.If there is any importance in programing with "that pointers" concept, what is the alternative for pointers in Java?

Does C also need a Virtual Machine to execute itself,(just like java)?
If not,Is there any advantage of moving to virtual machine concept?

Symbian OS is said to has been developed with 100% Java.Isn't it attacked by viruses? If it is, How those guys have made the mobile users to allow the virus to run.
Can't any O/S to be written so that it never gets attacked by any virus [Prevents overwriting the the System files, but runs all the other utility tools on a visible platform layer- It means, user is reported with all the processes that run on that virtual layer that runs on the System, and all the applications are run on that layer without touching System files].

Thanks Again...!!!!
Oct 21 '08 #3
Laharl
849 Expert 512MB
Pointers do help with viruses, but the real problem is insecure code written with (for example) the C string libraries, though other vulnerabilities exist. Java does have vulnerabilities, don't let them fool you. They're just not as well known, as C's have been studied for twenty years or so and the onus of fixing them or working around them falls on the programmer, primarily by not using the dangerous functions.

Pointers do exist in Java, you just can't do pointer arithmetic on them or explicitly dererefence them like in C(++). Java calls them "references," but they're essentially pointers. They're useful because without them, every C function obtains its arguments by value, as well as allowing for dynamic memory management. Also, they're key to understanding assembly-level programming.

The JVM at this point is pure Java as far as I know, though it was originally (Java 1.1 or so) written in C.

I'm sure attacks against Symbian exist, but the mobile market (outside of Asia, Japan in particular) isn't nearly as large as the desktop market, so that's where you get most of the malware.

No OS is 100% virus free, apart from one that's never connected to a network or ever physically in the hands of someone who wishes to do it ill or ever installs any software. Period. And even then, the vulnerabilities still exist, they're just not being exploited.

C does not run on a VM, it compiles its code directly to assembly/machine code (through a couple intermediate stages) and those instructions are executed directly. If anyone were to suggest running C on a VM, you could hear the screams from Redmond to wherever Richard Stallman hangs out these days. C's advantages are speed and being low-level (inline assembly, etc). Using a VM negates both.
Oct 21 '08 #4
Pointers do help with viruses, but the real problem is insecure code written with (for example) the C string libraries, though other vulnerabilities exist. Java does have vulnerabilities, don't let them fool you. They're just not as well known, as C's have been studied for twenty years or so and the onus of fixing them or working around them falls on the programmer, primarily by not using the dangerous functions.

Pointers do exist in Java, you just can't do pointer arithmetic on them or explicitly dererefence them like in C(++). Java calls them "references," but they're essentially pointers. They're useful because without them, every C function obtains its arguments by value, as well as allowing for dynamic memory management. Also, they're key to understanding assembly-level programming.

The JVM at this point is pure Java as far as I know, though it was originally (Java 1.1 or so) written in C.

I'm sure attacks against Symbian exist, but the mobile market (outside of Asia, Japan in particular) isn't nearly as large as the desktop market, so that's where you get most of the malware.

No OS is 100% virus free, apart from one that's never connected to a network or ever physically in the hands of someone who wishes to do it ill or ever installs any software. Period. And even then, the vulnerabilities still exist, they're just not being exploited.

C does not run on a VM, it compiles its code directly to assembly/machine code (through a couple intermediate stages) and those instructions are executed directly. If anyone were to suggest running C on a VM, you could hear the screams from Redmond to wherever Richard Stallman hangs out these days. C's advantages are speed and being low-level (inline assembly, etc). Using a VM negates both.

Thank You Very Much!!!!

If so, is it possible to write Viruses using the thing called "referances" of Java that you've mentioned?

One Java lecturer told me that he can develop a Virus within half an hour(Using JAVA and J2ME),which can be sent with an SMS.And he said that that virus will run in secret(user doesn't know), when the phone user opens the SMS.After that he can always get a copy each of every SMS that phone user sends to someone else.

Can something like that be developed using J2ME (just java, without C)?
Oct 24 '08 #5
r035198x
13,262 8TB
Thank You Very Much!!!!

If so, is it possible to write Viruses using the thing called "referances" of Java that you've mentioned?

One Java lecturer told me that he can develop a Virus within half an hour(Using JAVA and J2ME),which can be sent with an SMS.And he said that that virus will run in secret(user doesn't know), when the phone user opens the SMS.After that he can always get a copy each of every SMS that phone user sends to someone else.

Can something like that be developed using J2ME (just java, without C)?
I have already deleted two threads of yours with this same question and sent you a private message informing you that discussing such things is against the site's posting guidelines. You may consider this to be your final warning.
Oct 24 '08 #6
Banfa
9,065 Expert Mod 8TB
(look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well)
I don't think so, from the Symbian Wikipedia page

The native language of the Symbian OS is C++
Solaris is UNIX based and as such almost certainly written in C which can be verified from the OpenSolaris site where the recommend GCC as one of the choices of compilers.
Oct 24 '08 #7
I have already deleted two threads of yours with this same question and sent you a private message informing you that discussing such things is against the site's posting guidelines. You may consider this to be your final warning.
What's the wrong with my question?
Is there anything wrong in comparing the abilities of 2 languages? I just wanted to shake off a chaotic situation, which I had to meet with because of the sayings of some people around me.
I'm really upset as you have mentioned this so much rudely,having deleted my threads too.

It's OK! I'll leave your site!

Anyway, I must thank the kind people who remain as the members of your site and tried to help me!

Thanks!!!!
Oct 24 '08 #8
JosAH
11,448 Expert 8TB
What's the wrong with my question?
Is there anything wrong in comparing the abilities of 2 languages? I just wanted to shake off a chaotic situation, which I had to meet with because of the sayings of some people around me.
I'm really upset as you have mentioned this so much rudely,having deleted my threads too.
This is what's wrong with your question:

If so, is it possible to write Viruses using the thing called "referances" of Java that you've mentioned?
Asking about and discussing viruses is explicitly forbidden here. If you are so
upset about this fact then maybe this is not the place for you; btw I don't see
any rudeness in the deletion of your threads that were against the rules.

It's OK! I'll leave your site!
Ok, have fun somewhere else.

kind regards,

Jos (moderator)
Oct 24 '08 #9

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

Similar topics

45
by: Market Mutant | last post by:
I just wonder job selections, job openings and salary level of PHP programer or Perl programmer comparing to Java programmers. Is Java programmer's salary has a minimal of 60K in US? Are there...
73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
133
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
14
by: mlw | last post by:
Do not take anything about this, it is not a flame or troll, while I'm not new to Java I favor C++. However, I may need to use it in a contract position, and am concerned that the restrictions it...
318
by: King Raz | last post by:
The shootout site has benchmarks comparing different languages. It includes C# Mono vs Java but not C# .NET vs Java. So I went through all the benchmark on the site ... ...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.