Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


veerendrakumar
java & c
2 Answer(s)      2 years and 10 months ago
Posted in : Java Beginners


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


Advertisement
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
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
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 that Thanks
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/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++ - 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# - 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 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
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++ - 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 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++ - 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 >
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
Diff b\w C++ & Java
Diff b\w C++ & Java  What is the difference between C++ & Java
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#  how to find out the size of the BMP image in C
C++
C++  How can i write this in dev c
C++
C++  How can i write this in dev c
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
c#
c#  how to find out the size of the BMP image
c++
c++  write a programme that calculates the area and circumference of a rectangle
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
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
Advertisements
 

 

 

DMCA.com