gs gs111 Polymorphism (Using Java) - Method Overloading - Quiz No.2
gs gs111 OOP Object Oriented Programming Java Quiz
This quiz belongs to book/course code gs gs111 OOP Object Oriented Programming Java of gs organization. We have 178 quizzes available related to the book/course OOP Object Oriented Programming Java. This quiz has a total of 5 multiple choice questions (MCQs) to prepare and belongs to topic Polymorphism (Using Java). NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
class FloatAdd { static void print(float a, double b) { System.out.println(a+a); } static void print(float a, float c) { System.out.println(a+c); } public static void main(String[] args) { print(15.0,5.0); } }
class FloatAdd2 { static void calc(float a, double b) { System.out.println(a+a); } static void calc(float a,float c) { System.out.println(a+c); } public static void main(String[] args) { calc(15.0f,5.0); } }
class PointAdd { static void calc(float a, double b) { System.out.println(a+a); } static void calc(float a,int c) { System.out.println(a+c); } public static void main(String[] args) { calc(15.0f, 10); } }
class Calculations { static float calc(float a, double b) { return(a+a); } static float calc(float a,int c) { return(a+c); } public static void main(String[] args) { System.out.println(calc(15.0f,1)); } }