Share on Google+Share on Google+

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

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

Ads

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 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
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
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
Tutorials   
Java Spring Hibernate Struts Training Retrieve database from the table dynamically in jsp from oracle using servlet What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized

Ads

 
Advertisement null

Ads