answersLogoWhite
notificationBell

Top Answer
User Avatar
Wiki User
Answered 2013-10-15 20:06:41

May be link might help ->

http://www.allinterview.com/viewpost/408298.html

There it is implemented through...... Operator Overloading!

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Related Questions


yes ,i can add the website link in java program when we write.


program for type casting in java


you can not write a java program without using even single class..............


The idea is to use repeated addition. You can do this with a "for" loop.



In Java, you add numbers with the "+" operator. For example, if you want to add "a" and "b", and copy the result to variable "c", the command would be: c = a + b;


To write a Java program to extract the last digit from the input you have to use tuples and loops.


Exactly what do you mean by 'C program in Java'


A Java program is a program that is written in the java programming language. You can create java classes, packages, interfaces etc and create java programs. You can write methods inside these classes to create the functionality in your class.


write a java program to display "Welcome Java" and list its execution steps.


public class AddNumbers{ public int add(int a, int b){ return a + b; } }


write a java program when you enter a number check number is Armstrong or not?


It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.


System.out.println("Your initials here");


write a java program to implement Dynamic method dispatch


when we want to write a program as a portable and dynamic with particular methods.because it has a independent language.


write a program draw circle and ellipse by using oval methods in java


No. Java objects are not pointers. Java does not support the pointers concept. You cannot access the memory location of the java objects.


Write a program that graphically demonstrates the shortest path algorithm


"Swing" is a library of graphical objects, implemented in pure Java. By using swing, you can guarantee that the graphical objects will look the same on every computer your program runs on.



Yes, in Java you can create an array of objects.


A Program in Java that spawns multiple threads is called a multithreaded program in Java.


yes ,java is a robust. Mainly their are two resons are available to called java is robest. They are 1. In another languages like c++ the programmer take the responsible to allocate the memory and deallocate the memory for objects and variables. But in java the programmer only take the responsible to allocate the memory for variables and objects. The jvm contain the grabage collection program. This grabage collection program take the responsiblt to remove the unused objects and variables from memory. 2. The java also support the exception handling Basha Allisagari


Java program without mainWe need a main method for executing a program.But YES we can write a program without using main() method.TRICK 1 of 2 :: while writing applets in java we don't use main... we use init() method instead.TRICK 2 of 2 :: using 'static' we can write a program whic will execute successfully and output the desired message on screen. Here it is :: class Mohit{ static { System.out.println("This java program has run without the main method"); System.exit(0); } } -->save the program as Mohit.java to compile::javac Mohit.java (in command prompt) to run ::java Mohit(command prompt) output will be ::This java program has run without the main methodWhoa!!!!! we are done.;)