in Technology by

What is polymorphism in Java?

1 Answer

0 votes
by

Polymorphism is the ability of an object to take on multiple forms. It allows objects of different classes to be treated as objects of the same class, for example through method overloading or method overriding.

Related questions

0 votes
    Which of the following is a type of polymorphism in Java? (a) Compile time polymorphism (b) Execution ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    What is an interface in Java?...
asked Feb 9, 2023 in Technology by JackTerrance
0 votes
    What is method overriding in Java?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    What is method overloading in Java?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    What is abstraction in Java?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    What is inheritance in Java?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    What is encapsulation in Java?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    What is the range of short data type in Java? (a) -128 to 127 (b) -32768 to 32767 (c) - ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    What is the range of byte data type in Java? (a) -128 to 127 (b) -32768 to 32767 (c) - ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these coding types is used for data type characters in Java? (a) ASCII (b) ISO-LATIN-1 ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these occupy first 0 to 127 in Unicode character set used for characters in Java? (a) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    What is the replacement of joda time library in java 8? (a) java.time (JSR-310) (b) java.date ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these is necessary condition for automatic type conversion in Java? (a) The destination type is ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these operators is used to allocate memory to array variable in Java? (a) malloc (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these are selection statements in Java? (a) if() (b) for() (c) continue (d) break I ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
...