Ques:Why is an object called an instance of a class?
Ans. An object is called an instance of a class as every object created from a class gets its own instances of the variables defined in the class. Multiple objects can be created from the same class.
Ques: Rewrite the following condition without using logical operators:
if ( a>b || a>c )
System.out.println(a);
Ans: You try…and leave reply
Other important posts links ::
- What is noun? Short explanation
- Online Hindi tutor in Bangalore 8181969432
- Hindi Language Tutors for CBSE ICSE ISC & State Board | Free Demo Class
- Pronic number program in Java
- Loops in Java-while,for, do while
- Buzz number program in java
- Operators and Operands in Java C C++
- Important question for ICSE Board class 10th computer application exam
Submit your review | |
Computer Home Tutor
Average rating: 0 reviews