Explanation:
If a device is putting data into the computer in the form of text, sound, images, button presses etc. then it is an input device, if the device is outputting things from the computer such as sound, movement, printing, images etc., then it is an output device. ... Therefore it is an input device.
Answer: In java the symbol "+" operator is used to perform string concatenation.
Explanation:
String concatenation refers to joining of two strings. So in java + is used to join strings which works provided one of the operands must be a String variable. Then it works by converting the other variable to String variable and joins the second operand to the end of the first operand.
An example of String concatenation is as follows:
int age = 10;
System.out.println("The boys age is " + age);
Output:
The boys age is 10.
here, the age is integer variable but as the phrase "The boys age is" is a String variable so it converts the age to String variable and joins both the Strings.
Answer:
use a wizard or use a design view
Explanation:
i took the test
Explanation:
Following are the difference between overriding and overloading
(1) Method overloading means method having same name but different parameter or method signature Whereas Method overriding means method having same name and same parameter or signature.
(2) Method overloading is achieved the compile time Polymorphism whereas Method overriding is achieved the Run time Polymorphism .
(3 ) In method overriding child class have facility to provide a specific implementation of a method which is already defined by parent class method whereas there is no such facility is available in method overloading
(4 )Programming structure of method overloading
class test
{
void fun()
{
// statement
}
void fun(int b)
{
// statement
}
}
In this fun() method name is same but different signature I.e void fun() and void fun(int a);
Programming structure of method overriding
class parent
{
void fun()
{
// statement in parent class
}
}
class child extends test
{
void fun()
{
// override the statement in child class
}
}
In this fun() method have same name and same signature in both class