1. Differentiate Overloading and Overriding

1. Differentiate Overloading and Overriding

<p> 2marks</p><p>1. Differentiate overloading and overriding. 2. What is wrapper class? 3. What are the data types supported in Java? 4. What is a String in Java? 5. What are the different types of operators used in Java? 6. What is the difference between Concat method and + operator to join strings? 7. Compare static constants and final constants. 8. What is Polymorphism? 9. What is Command Line Arguments? 10.Differentiate static binding and dynamic binding. 11.Compare Abstract classes and interface. 12.Explain working of Java Virtual Machine (JVM)? 13.What are the features of Java Language? 14.What are the types of inheritance? 15.What is Architecture Neutral? Big questions</p><p>1. Explain the Date Class methods with examples. 2. Compare and Contrast Java with C++. 3Explain the concept of inheritance and its types. 4. Name some Java-Doc Comments and Tags. Explain 5. Give a detailed explanation of packages in java 6. Explain the methods available under String Buffer Class with suitable code. 7. Write a program to demonstrate static variables, methods, and blocks. </p><p>8. Write a program to print the following triangle of binary digits. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 9. Develop a message abstract class which contains playMessage abstract method. Write a different sub-classes like TextMessage, VoiceMessage and FaxMessage classes for to implementing the playMessage method. 10.Write a program to give the example of control statements.  If statements.  Switch Statements.  For loop.  While Statements.  Do statements 11. Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea and ACmachine. In this class the member functions are setdata and displaydata. 12. Write a program to create a package named mypack and import it in circle class. 13. Write a program to create a package named pl, and implement this package in sample class. 14.Write a program for calculating Matrix addition Operations. 15.Write a program to create a class named shape. In this class we have three sub classes circle, triangle and square each class has two member function named draw () and erase (). Create these using polymorphism concepts. </p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us