?
Solved

c & java

Posted on 2003-11-30
5
Medium Priority
?
419 Views
Last Modified: 2013-11-23
C program compliant with ANSI's C standard is platform independent. Then why is only Java considered platform independent?

What is the difference between new/delete and malloc/free?

Which new keyword was introduced in Java from JDK1.4? List some new features expected in JDK 1.5
 How is J2EE different from J2SE?

What is a deployment descriptor in J2EE terminology?  
What is the purpose of a http-servlet?


Can you call the main function of a C program from another C program

When do you use the 'volatile' keyword in Java?


 What is the difference between new/delete and malloc/free?


0
Comment
Question by:sandipmurmu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 9846240
Sure sounds like homework.
Perhaps the folowing will help some:

1) What is the output of a C compile/link and what does Java produce?

2) What is passed to 'new' and what is passed to 'malloc'?


0
 
LVL 1

Accepted Solution

by:
abhinaysinha earned 80 total points
ID: 9852320
C produces a executable for the operating system, whereas Java produces a executable for the Java Virtual Machine(JVM).It won't matter whether the JVM is installed on windows or unix or Linux, the compiled code will work if the JVM is installed, whereas in C you have to recompile the code to work for the OS.

Regarding new and malloc, new creates the selected object and pass the pointer to the variable, whereas malloc assigns a memory space of any supplied length, and passes a void pointer to the memory to the variable. free and delete will work with there counterparts.
0
 
LVL 22

Expert Comment

by:cookre
ID: 9854779
abhinaysinha - EE has a policy against giving answers to homework.  We can help, but we can't give explicit answers.  My questions were intended to help steer sandipmurmu towards some of the answers.

0
 
LVL 1

Expert Comment

by:abhinaysinha
ID: 9864865
Oops! My mistake. Thanx for the reminder.
0
 
LVL 4

Expert Comment

by:MobileOakAI
ID: 9893821
another abandoned question

I have a different question: How do you write a program that can split 20 points for dividing amongst six or more questions while applying a responsible grade to the honest contributors to the solutions sought avidly?
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question