answersLogoWhite
Computer Programming
Java Programming
C Programming

How the compiler compiles overloaded method?

345

Top Answer
User Avatar
Wiki User
Answered
2010-08-10 14:35:48
2010-08-10 14:35:48

method overloading occurs when we use two functions or more with the same name.In function overloading compiler detect which method is call actually throw the parameters passed to the methods.In function overloading parameters of functions are different.

001
๐Ÿฆƒ
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0

Related Questions


Greetings Technologist. The Java compiler compiles Java code, whereas the C compiler compiles C Code HTH Richard Wolf Software Architect


An optimization is what is compiled by an optimization compiler. An optimization compiler compiles optimizations. You're welcome.


The former is the right choice: compiler compiles, interpreter doesn't.


Compiler is used to convert a language readable in user domain into the tasks which is understood by the machine. example: C++ compiler compiles program written in a langauge understood by user which compiles this to a task which can be executed by a computer's processor.


A Java compiler is a compiler for the Java programming language. A compiler translates programs written in the Java language and compiles them into bytecode class files.


Yes, a static method may be overloaded.


Lexicographer - A writer, editor, or compiler of a dictionary..!!


A bliss compiler compiles Bliss source into Bliss object code which is a step in executing macdine code written by the Bliss compiler.


No. (Theoretically, you could write a C-compiler in Java, that compiles C to java byte-code.)


No, a compiler is not hardware - it is software - a program that converts, or compiles, source code representing a program into its machine code so that it can be executed on the computer.


compiler compiles the program completely at a time while inrerprerter compiles the program line by line


An assembler is a one type of compiler which compiles the program written in assembly language.


A C compiler is a program that turns source code written in the C programming language into machine code. A cross-compiler is any compiler (C or another language) that compiles code in a format used on another operating system or processor.


There is no difference except in capitalization. Both terms refer to a program that compiles C code into assembly or, less traditionally, pseudo-code.


If something that is meant to be compiled actually compiles, it means that there are no errors of the types detected by the compiler.


A Java compiler takes the imputed code and compiles byte-code. This code is then interpreted by the Java interpreter. This compiling method allows the code to versatile, working on cellular devices, the web browser, and on your hard-drive.


Yes. The main method is just like any other java method and can be overloaded. But - Only the method with public static void main(String[] args) signature will get invoked when the class is run.


It's main advantage that it compiles C sources into object modules. (That's why it is called C-compiler.) It's disadvantage that it doesn't automagically correct the errors in the program.


Yes, the main method is just like any other static method.


False. Overloaded methods must have different parameters defined.A different return type alone would not help the compiler determine which method to choose at compile time.


When the methods have the same parameter list signature they are said to be overridden, whereas, overloaded methods have different parameter list signatures.


That depends on how you define body of class. If you do not define constructors then compiler will provide default constructor and it is not overloaded. If you create your own constructor you automatically overload default constructor.


Yes, you can very well overload the main method but, the main method that would get invoked by the JVM when you try to run this class would be the main method that has the below signature: public static void main(String[] args) { ... } All other main methods would be accepted by the Compiler but only the above method would get called when you run the class


The assignment operator. If you do not declare one in your class, the compiler generates one for you.


Editor - edits text Compiler - compiles the program Linker - links the program Debugger - helps finding bugs



Copyright ยฉ 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.