![]() ![]() The word Polymorphism means "many forms". What do you understand by the term Polymorphism? It defines data and functions common to all objects of a certain kind. Question 2Ī class is a blueprint to create objects. Thus we can say that car is an object that combines its attributes and behaviour as a single unit. It transports people to different locations by controlling its speed and direction, an accelerator to increase or decrease its speed and brakes to stop it. In addition, the car has several functional definitions. When we describe a car as an object, there are a number of physical factors which contribute to define its state such as its brand name, colour, speed, size, number of seats, etc. Give a real life example to explain objects along with their attributes and behaviour.Īn object represents data (attributes) and its related methods (behaviour) as a single unit. Which symbol is used to combine two or more items in a single line?ĭefine objects. Which among the following feature is used to manage the complexity of the system?Ī Java program is compiled into an intermediate language called. is a named location in the memory, which stores data temporarily. After that, she will use the division operator (/) to divide the total marks by 3 to get the average. ![]() Kareena will use the addition operator (+) to first calculate the total marks obtained in all three subjects. Which operators will she use for the same? Kareena is writing a program in Java to calculate the average of three subjects. To run her program, Ritika needs to right-click on the class icon and select void main(String args) option from the pop-up menu. After the successful compilation of her program, which option should she select to run it? While comparing two variables, their data types should not be the same.įalse Application Based Questions Question 1 Inheritance is a feature using which an object in one class acquires the properties of another class. The main() function indicates that the execution of the Java program will begin from this point.Įvery Java statement must end with a colon. Polymorphism allows a function to behave differently for different objects.Ĭonstants mean the fixed values that do not change during the execution of a program. Initialization is a process of assigning some initial value to a variable. The smallest meaningful element of a Java program is called a Token. Question 3Ī Class is a blueprint that defines data and functions common to all objects of a certain kind. Question 2Įncapsulation is the technique of binding both data and functions together. The Java programming language is an Object Oriented Programming language. Chapter 5 Introduction to Java & BlueJ Class 8 - Logix Kips ICSE Computer with BlueJ ![]()
0 Comments
Leave a Reply. |