java & c

java & c

why c language is called top down approach? why java is called bottom to top approach?

View Answers

January 31, 2012 at 4:37 PM

In C, compilation stats from the very top of the program code. In Java, on the other hand, we have user defined data-types. These are defined at the start of the program. Compilation starts from the main function; thereafter as the control comes across these data types, compilation of the definition of these data types are performed. Thus we can say that in C the execution starts from the top and goes down to the bottom; Java on the other hand start from bottom and comes back the top(user defined data types) later.


February 23, 2012 at 4:49 PM

In C, compilation stats from the very top of the program code. In Java, on the other hand, we have user defined data-types. These are defined at the start of the program. Compilation starts from the main function; thereafter as the control comes across these data types, compilation of the definition of these data types are performed. Thus we can say that in C the execution starts from the top and goes down to the bottom; Java on the other hand start from bottom and comes back the top(user defined data types) later.









Related Tutorials/Questions & Answers:
c or c++ - Java Beginners
c or c++  Write a program for a two user chess game(Users must be on different systems)? please send me this source code to my mail id with step by step explanation
c c++ - Java Beginners
c c++  Write a Multi-user chat server and client  Hi Friend, Please visit the following link: http://www.roseindia.net/chatserver/index.shtml Hope that it will be helpful for you. Thanks
Advertisements
Difference in XML, C, C++, Java
Difference in XML, C, C++, Java  hi... What is the difference between XML and C or C++ or Java ? please tell me about thatADS_TO_REPLACE_1 Thanks
C/C++/JAVA Question on function
C/C++/JAVA Question on function  "Write a function to find out common... other data type also.ΓΆβ?¬Β? Question can be solved in C,C++ or JAVA. (Recommneded - C
c c++ - Java Beginners
c c++  Write a small record management application for a school...]; String name = f[1]; String c = f[2]; String note = f[3...]; String name = st[1]; String c = st[2]; String note = st[3]; if (id.equals
java & c
java & c  why c language is called top down approach? why java is called bottom to top approach?   In C, compilation stats from the very... that in C the execution starts from the top and goes down to the bottom; Java
c++ - Java Beginners
c++  can i connect c++ with database like in java. do we need any special software for this purpose
about c and java
about c and java   i need java and c language interview and objective... visit the following links: http://www.roseindia.net/java/ http://www.roseindia.net/c-tutorials/ http://www.roseindia.net/interviewquestions
c - Java Beginners
c  image compression in c/c++ language
c program - Java Beginners
c program  Write a program to encrypt a string and decrypt
C++
C++  How can i write this in dev c
C++
C++  How can i write this in dev c
c#
c#  how to find out the size of the BMP image in C
Diff b\w C++ & Java
Diff b\w C++ & Java  What is the difference between C++ & Java
Java vs C
Java vs. C Language In this section we will compare Java and C Programming... Java is platform independent while c is not. Memory address In C... business problem. Java is object oriented, platform independent programming language
C program - Java Magazine
C program  develop a simple program in C that allows a user to enter...: #include #include void main(){ int a,b,c,area,ar; clrscr(); printf...", &c); if((a==b)&&(b==c)&&(c==a)){ printf("Equilateral Triangle \n
c program - Java Beginners
c program  1. How to write a program to Add 2 numbers without using int .size should be more than machine size
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
C# - Java Beginners
C#  program to print the following: 1 1 1 1 2 2 1 2 3 3 3 2 3 4 4 4 4 3 4 5 5 5 5 5 4  Hi Friend, We are sending you the code of your pattern in java. class Pyramid { public static void
c++
c++  write a programme that calculates the area and circumference of a rectangle
c#
c#  how to find out the size of the BMP image
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
c++ - Java Beginners
c++  to write a program to display the elements in different format using single dimensional array with the help of function templates algorithm: 1.start the program 2.create a class elements 3.delete single
c++ - Java Beginners
c++  WHAT IS the use of#include<  Hi Friend, It is a non standard header file that contains clrscr(), getch() functions. clrscr()- It is used to clear the console screen. getch()- This function reads each
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
C Language - Java Beginners
C Language  1. What are extension files? Give examples. 2. What is operating system? What are the different types available? 3. What is the purpose of operating system? 4. What is the function of operating system? 5
C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values
C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3
c++ - Java Beginners
c++  2. Use for loops to construct a program that displays a pyramid of Xs on the screen. The pyramid should look like this X XXX XXXXX XXXXXXX XXXXXXXXX except that it should be 20 lines high, instead of the 5 lines shown
c++ - Java Beginners
c++  1. Create the equivalent of a four-function calculator. The program should request the user to enter a number, an operator, and another number..., operator, second number: "; cin<<"%f %c %f", &num1, &ch, &num2 ); cin >
C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me
C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel
cmd in c++/JAVA - Java Beginners
cmd in c++/JAVA  HI , CAN U TELL ME THAT HOW I CAN MAKE THE COMMAND FOR DOS IN C++ OR JAVA....? eg.:-COPY,COPYCON,DELETE,FORMAT,DATE ETC. PLZ TELL ME WHERE I CAN LEARN THE SYSTEM PROGRAMMING ,AND DOS GAMES ETC. PLEASE
c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed
c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area
C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d
c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70
c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum
c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass.... Write a C++ statement that prints the values of the data members of the object
C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon
c++
c++  Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u... private members does class xClass have? c. How many constructors does class xClass
Difference between C++ and Java
Java and C++ are Object Oriented Programming (OOPs) language. Java... complex when compared to Java . C++ was designed for infrastructure programming and extends the C programming language. Java supports network computing
c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D
c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70

Ads