Java Programming OOP Questions and Answers Set 7

Java Programming OOPs

Questions 61 to 70



61.
A process that involves recognizing and focusing on the important characteristics of a situation or object is known as:
(a)   Encapsulation                                            (b)  Polymorphism
(c)   Abstraction                                                (d)  Inheritance
(e)   Object persistence.
62.
Which statement is true regarding an object?
(a)   An object is what classes instantiated are from
(b)   An object is an instance of a class
(c)   An object is a variable
(d)   An object is a reference to an attribute
(e)   An  object is not an instance of a class.
63.
In object oriented programming, composition relates to
(a)   The use of consistent coding conventions
(b)   The organization of components interacting to achieve a coherent, common behavior
(c)   The use of inheritance to achieve polymorphic behavior
(d)   The organization of components interacting not to achieve a coherent common behavior
(e)   The use of data hiding to achieve polymorphic behavior.
64.
In object oriented programming new classes can be defined by extending existing classes.    This is an example of:
(a)   Encapsulation                                 (b)  Interface
(c)   Composition                                   (d)  Inheritance            (e)  Aggregation.
65.
Which of the following does not belong: If a class inherits from some other  class, it should

(a)   Make use of the parent class's capabilities
(b)   Over-ride or add the minimum to accomplish the derived class' purpose
(c)   Over-ride all the methods of its parent class
(d)   Make sure the result "IS-A-KIND-OF" its base class
(e)   Make sure the result “contains” its base class.
66.
Object oriented inheritance models the
(a)   "is a kind of" relationship
(b)   "has a" relationship
(c)   "want to be" relationship
(d)   inheritance does not describe any kind of relationship between classes
(e)   “contains” of relationship.
67.
The wrapping up of data and functions into a single unit is called
(a)   Encapsulation                                 (b)  Abstraction
(c)   Data Hiding                                     (d)  Polymorphism                        (e) Message passing.
68.
Polymorphism
(a)   Is not supported by Java
(b)   Refers to the ability of two or more objects belonging to different classes to respond to exactly the same message in different class-specific ways
(c)   Simplifies code maintenance
(d)   Not simplifies code manintenance
(e)   Refers to the ability of two or more objects belonging to different classes to respond to exactly the same message in different class –specific ways and simplifies code maintenance.
69.
In object oriented programming new classes can be defined by extending existing classes.     This is an example of:
(a)   Encapsulation                                 (b) Interface             (c) Composition
(d)   Inheritance                                      (e) Aggregation.
70.
Given a class named student, which of the following is a valid constructor declaration for the class?
(a)   Student (student s)  {  }                    (b) Student student ( ) {  }
(c)   Private final student ( ) {  }                (d) Void student (  )  {   }
(e)   Static void student(){ }.


Answers


61.
Answer : (c)
Reason : The insulation of data from direct access by the program is called as the data abstraction.Data abstraction also called as data hiding, is the mechanism where by the code and the data it manipulates are wrapped into a single unit.
62.
Answer : (b)
Reason : An object is an instance of a class. Objects are created from class definitions that implement abstractions.
63.
Answer : (b)
Reason : Composition is about an object that is made up of other objects, referred as "containment. Composition implies that the life cycles are more strongly linked, that means Whole is responsible for the life time of Part.
64.
Answer : (d)
Reason : Inheritance is a mechanism that enables one class to inherit all of the behaviour (methods ) and attributes (instance variables) of another class. A class that inherits from another class is called a subclass and the class that gives the inheritance is called a superclass.
65.
Answer : (c)
Reason : In a class hierarchy, when a method in a subclass has the same method signature as that of the superclass, then the method in the subclass is said to “override” the method in superclass. When an overridden method exists in the subclass, the subclass objects always refer its own. The subclass overridden method hides ( or blocks ) that of the superclass method.
66.
Answer : (a)
Reason : As it models generalization relationship it takes “is a kind of “keyword.
67.
Answer : (a)
Reason : Data encapsulation is the method of wrapping up of data and functions into a single unit.
68.
Answer : (e)
Reason : As Polymorphism refers to the ability of two or more objects belonging to different classes to respond to exactly the same message in different class-specific ways. It also simplifies code manintenance.
69.
Answer : (d)
Reason : As inheritance is nothing but extending existing classes whereas the others are  for different purpose.
70.
Answer : (a)
Reason : A constructor cannot specify any return type, not even void. A  constructor cannot be final, static or abstract.


<< Prev   1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22  

 23   24   25   26   27   28   29   30  Next >>


67 comments :

  1. Great support for my exams.. itz a great service..!! Cheers..!!

    ReplyDelete
  2. thanks good for track technical test

    ReplyDelete
  3. Thanks for the post.
    This website is very helpful for programming interview preparation.
    https://www.geekyprep.com/

    ReplyDelete
  4. Thanks a lot very much for the high quality and results-oriented help.
    I won’t think twice to endorse your blog post to anybody who wants
    and needs support about this area. refer


    java training in chennai


    java Training in Bangalore


    ReplyDelete

  5. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    Are you looking for the best Java training institute in Chennai?
    Come and learn with Aorta, the best java training institute in Chennai offering the best platform to learn and get the depth of Java
    java training in chennai
    java course in chennai

    ReplyDelete

  6. Best Solidworks training institute in noida

    SolidWorks is a solid modeling computer-aided design (CAD) and computer-aided engineering (CAE) computer program that runs on Microsoft Windows. SolidWorks is published by Dassault Systems. Solid Works: well, it is purely a product to design machines. But, of course, there are other applications, like aerospace, automobile, consumer products, etc. Much user friendly than the former one, in terms of modeling, editing designs, creating mechanisms, etc.
    Solid Works is a Middle level, Main stream software with focus on Product development & this software is aimed at Small scale & Middle level Companies whose interest is to have a reasonably priced CAD system which can support their product development needs and at the same time helps them get their product market faster.

    Company Address:

    WEBTRACKKER TECHNOLOGY (P) LTD.
    C-67,Sector-63,Noida,India.

    E-mail: info@webtracker.com

    Phone No: 0120-4330760 ,+91-880-282-0025


    http://webtrackker.com/solidworks-training-Course-institute-in-noida-delhi.php

    Best Solidworks training institute in noida

    ReplyDelete
  7. Artificial intelligence Training in noida
    Artificial intelligence Training in noida-Artificial Intelligence Training in Noida, Artificial Intelligence Training classes in Noida, Artificial Intelligence Training classes in Noida, Artificial Intelligence Training

    by Real time ARTIFICIAL INTELLIGENCE Experts, Big-Data and ARTIFICIAL INTELLIGENCE Certification Training in Noida



    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.

    +91 - 8802820025
    0120-433-0760
    0120-4204716
    EMAIL: info@webtrackker.com
    Website: www.webtrackker.com



    Our Other Courses:


    artificial intelligence Training in noida

    SAS Training Institute in Delhi

    SAS Training in Delhi

    SAS Training center in Delhi

    Sap Training Institute in delhi

    Sap Training in delhi

    Best Sap Training center in delhi

    Best Software Testing Training Institute in delhi

    Software Testing Training in delhi

    Software Testing Training center in delhi

    Best Salesforce Training Institute in delhi

    Salesforce Training in delhi

    Salesforce Training center in delhi

    Best Python Training Institute in delhi



    Python Training in delhi


    Best Android Training Institute In delhi


    Best Python Training center in delhi


    Android Training In delhi


    best Android Training center In delhi

    ReplyDelete
  8. Data science Training Institute in Noida

    Webtrackker Data science Training Institute in Noida Accelerate your career in data science by starting from basics in Statistics, Data Management and Analytics to advanced topics like Neural Networks, Machine Learning and Big Data.



    http://webtrackker.com/Best-Data-Science-Training-Institute-in-Noida.php



    Data science Training Institute in Noida





    ReplyDelete
  9. Graphics designing training institute in Noida
    Best Graphics training institute in Noida, Graphic Designing Course, classes in Noida- webtrackker is providing the graphics training in Noida with 100% placement supports. If you are looking for the Best Graphics designing training institute in Noida For more call - 8802820025.

    Graphics designing training institute in Noida, Graphics designing training in Noida, Graphics designing course in Noida, Graphics designing training center in Noida

    Company address:
    Webtrackker Technology
    C- 67, Sector- 63, Noida
    Phone: 01204330760, 8802820025
    Email: info@webtrackker.com
    Website: http://webtrackker.com/Best-institute-for-Graphic-Designing-training-course-in-noida.php

    ReplyDelete
  10. Webtrackker is one only IT company who will provide you best class training with real time working on marketing from last 4 to 8 Years Experience Employee. We make you like a strong technically sound employee with our best class training.
    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.
    +91 - 8802820025
    0120-433-0760

    Rpa Training institute in noida
    Robotic Process Automation (RPA) has not just overhyped the noise, but it has also proved to intensify unique and high-end skills, bringing remarkable productivity, most importantly, huge customer satisfaction ensuring reduced cost. Robots are making human efforts simpler and precise. Top-notches are focusing more towards investing into People, Robots, and Technology and bag highly competent resources, clients, and opportunities.

    Blockchain training institute in Noida
    Blockchain training institute in Noida - with 100% placement support - 8802820025 - Blockchain training institute in Noida sector 63, 64, 65, 18. A blockchain is a digitized, decentralized, public ledger of all cryptocurrency transactions.

    java training institute in meerut

    java training institute in meerut- Java is an object-oriented computer programming language released by Sun Microsystems in 1995. Mobile phones to scientific supercomputers, most of the devices employ the use of Java applications. Java programming derives most of its syntax from C and C ++. It is one of the fastest, simplest and reliable platforms, and it is one of the most widely used languages of its simplified coding and dynamic function.


    Our services:
    Rpa training institute in noida
    Rpa training center in noida
    Rpa training courses in noida
    Rpa training in noida
    Company Address:
    Webtrackker Technology
    Website: http://webtrackker.com/robotic-process-automation-rpa-training-institute-in-noida.php
    http://webtrackker.com/sas_Training_Course_institute_noida_delhi.php
    https://traininginstitutet.in/Java-training-institute-meerut-delhi.html

    http://webtrackker.com/robotic-process-automation-rpa-training-institute-in-noida.php



    ReplyDelete
  11. Webtrackker is one only IT company who will provide you best class training with real time working on marketing from last 4 to 8 Years Experience

    Employee. We make you like a strong technically sound employee with our best class training.
    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.
    +91 - 8802820025
    0120-433-0760

    Rpa Training institute in noida
    Robotic Process Automation (RPA) has not just overhyped the noise, but it has also proved to intensify unique and high-end skills, bringing

    remarkable productivity, most importantly, huge customer satisfaction ensuring reduced cost. Robots are making human efforts simpler and precise.

    Top-notches are focusing more towards investing into People, Robots, and Technology and bag highly competent resources, clients, and

    opportunities.

    Blockchain training institute in Noida
    Blockchain training institute in Noida - with 100% placement support - 8802820025 - Blockchain training institute in Noida sector 63, 64, 65, 18. A

    blockchain is a digitized, decentralized, public ledger of all cryptocurrency transactions.

    java training institute in meerut

    java training institute in meerut- Java is an object-oriented computer programming language released by Sun Microsystems in 1995. Mobile phones to

    scientific supercomputers, most of the devices employ the use of Java applications. Java programming derives most of its syntax from C and C ++. It is

    one of the fastest, simplest and reliable platforms, and it is one of the most widely used languages of its simplified coding and dynamic function.


    Our services:
    Rpa training institute in noida
    Rpa training center in noida
    Rpa training courses in noida
    Rpa training in noida
    Company Address:
    Webtrackker Technology

    rpa training institute in noida

    sas training institute in noida

    java training institute in meerut

    ReplyDelete
  12. Webtrackker Technology is IT Company and
    also providing the Solidwork training in
    Noida at running project by the real time
    Webtrackker Technology
    C- 67, Sector- 63 (Noida)
    Phone: 0120-4330760, 8802820025
    8802820025
    http://webtrackker.com/solidworks-training-Course-institute-in-noida-delhi.php

    ReplyDelete
  13. Webtrackker Technology is IT Company and
    also providing the Solidwork training in
    Noida at running project by the real time
    Webtrackker Technology
    C- 67, Sector- 63 (Noida)
    Phone: 0120-4330760, 8802820025
    8802820025


    Solidwork training institute in Noida

    ReplyDelete
  14. Latest News in Hindi

    Latest News in Hindi- Hindustan channel is the best online web portal in india where you read the all latest indian news in hindi. if you are looking the Latest News in Hindi, live news channel, hindi news channel, live news channels in hindi, live hindi channels then hindustan channel is best for you.
    Latest News in Hindi
    Company address:
    C- 67, Sector- 63, Noida
    Phone: 01204330760, 8802820025


    URL: https://hindustanchannel.com

    ReplyDelete
  15. Sap fico training institute in Noida

    Sap fico training institute in Noida - Webtrackker Technology is IT Company which is providing the web designing, development, mobile application, and sap installation, digital marketing service in Noida, India and out of India. Webtrackker is also providing the sap fico training in Noida with working trainers.


    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.

    +91 - 8802820025
    0120-433-0760
    0120-4204716
    EMAIL: info@webtrackker.com
    Website: www.webtrackker.com

    ReplyDelete
  16. Excellent information, thanks for sharing !!!!
    Zenitech is best java training institute in Delhi. Here at Zenitech, in JAVA Training Program we let you to work at live projects to upgrade your capability of coding.

    ReplyDelete
  17. nice blog.When you search for good robotics classes in Chennai and avail their courses for better understanding of the subjects and hence build up a strong career in robotics.

    ReplyDelete
  18. Hiii...Thanks for sharing...Its very useful...Keep move on...
    Blockchain Training in Hyderabad

    ReplyDelete
  19. Thanks For Your kind Info. Here at Sphinax Info Systems, We are the number one leading ERP and SAP software development companies in chennai. We do have more than seven years of strong experience in ERP Application Development and SAP based services & support like SAP B1, SAP Hana, SAP R3 etc.. For More Info… For Further Details Contact Us

    Thanks for your blog!!.
    JAVA Development Services
    HR Pay Roll Software
    Hotel Billing Software
    Web Design Company
    Hospital Management Software
    SAP Software Services

    link text

    Nice Blog !!.. Thanks For Sharing.
    IT Infrastructure Services
    HRMS Services
    JAVA Development Services
    HR Management Services

    ReplyDelete
  20. This is good information and really helpful for the people who need information about this.
    Artificial intelligence Training in Delhi
    Artificial intelligence Course in Delhi

    ReplyDelete
  21. DIAC offers industrial automation training & certification with 100% job placement support for electrical engineers, electronics engineers and mechanical engineers. Call Now 91-9953489987 to Grab Discount on Fees. We have the best trainers from PLC SCADA automation training institutes in Noida.

    ReplyDelete

  22. Thanks, this is generally helpful.
    Still, I followed step-by-step your method in this Java training
    Java course

    ReplyDelete
  23. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support in this area. same as your blog i found another one Mobile Marketing .Actually I was looking for the same information on internet for Mobile Marketing and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete
  24. Excellent article and this helps to enhance your knowledge regarding new things. Waiting for more updates.
    Ecommerce Website Using PHP
    PHP Ecommerce Framework

    ReplyDelete
  25. The rising demand for mobile applications to streamline the business processes has posed a serious challenge in front of developers to adopt rapid and ideal development process, to deliver quality software product. The basic requirements of the user tend to alter at a fast pace, hence contemplative planning for the building of customer-centric mobile application becomes essential. os.path.join

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. It's really helpful! For more information about Deep Learning training in noida must visit.

    ReplyDelete
  28. Great, thanks for sharing this post.Much thanks again. Awesome.
    java online training hyderabad

    ReplyDelete
  29. To know more abput automated help desk and service click here: https://bit.ly/3ttcaGK

    ReplyDelete
  30. This post is extremely radiant. I extremely like this post. It is outstanding amongst other posts that I’ve read in quite a while. Much obliged for this better than average post. I truly value it! fico training in hyderabad

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
  32. Great Blog with Excellent Stuff.
    Keep Writing more Tech-IT Blogs .
    Thank You.

    Data Science Course in Singapore

    ReplyDelete
  33. UnoGeeks Offers the best Oracle Recruiting Cloud Training in the market today. If you want to become Expert Oracle Recruiting Cloud Consultant, Enrol in Oracle Recruiting Cloud Training offered by UnoGeeks.https://unogeeks.com/oracle-recruitment-cloud-training

    ReplyDelete
  34. Our experts who offer MYOB Assignment Help are cognizant of the significance of accountancy assignments and extend a helping hand to students in order to help them manage the complex of assignments; develop a solid understanding of the topic. They assist you with doing your work and developing a solid base in the subject so you may stand out from your classmates and fellow students. Our online site, which includes Online Assignment Help, is credible and genuine.

    ReplyDelete
  35. Blog is interesting. I was enthralled, and the aesthetic is distinct.

    Software development company in Hyderabad

    ReplyDelete
  36. We Provided Website development company Noida service. 12 years of experience and full-time dedicated mobile apps, android apps developer from Noida, Delhi NCR, Gurgaon, India. He provides startup consultations and mobile web development. find more information- 7011969292.
    visit- https://www.algosoft.co/services/web-application-development.html

    ReplyDelete
  37. very good blog. When you search for best Java training course in Faridabad and avail their courses for better understanding of the subjects and hence build up a strong career in robotics.

    ReplyDelete
  38. Fine such a nice content thanks for sharing this Blog, worthy words I have gained more information
    B tech CSE in Full stack Development
    Cyber Security Course after 12th

    ReplyDelete
  39. Thanks for sharing this information, this will really helps to learn java. Students can also learn java course in Bhopal to enhance their career.

    ReplyDelete
  40. "Your article made my day! I found it incredibly insightful and well-written. I'll definitely be coming back for more.Students can also explore best online Java course in Hisar to enhance their career prospects and gain valuable skills in the field.

    ReplyDelete
  41. That's great blog post. Keep up with great work.Thanks.
    Java Classes in Nagpur

    ReplyDelete
  42. Thanks for sharing this information, Keep sharing
    Java Course in Solapur

    ReplyDelete
  43. Thank you for sharing this valuable content. I always appreciate well-crafted articles with excellent ideas that make the post truly enjoyable. Keep up the fantastic work, and I look forward to more from you.
    visit: Ethical Considerations in Data Analytics

    ReplyDelete
  44. Thanks a bunch for sharing your content! I always love diving into exceptional material that provides valuable insights. The concepts you present are truly extraordinary and incredibly engaging, making your post a genuine source of delight. Keep up the fantastic work
    Visit- Java Programming for Beginners: Your Step-by-Step Course

    ReplyDelete
  45. Oops concept is really confusing, thanks for suggesting this website hitupsolutions

    ReplyDelete
  46. Thank you for sharing. I always appreciate engaging content with valuable insights. The presented ideas are exceptional and innovative, making the post truly enjoyable. Keep up the fantastic work.

    Visit site: Data Magic: Python's Role In The Age Of Analytics

    ReplyDelete
  47. Java Course in Pune is an object-oriented, class-based programming language that strongly focuses on minimizing implementation dependencies. Its goal is to give programmers the ability to write code once and run it anywhere (WORA), an idea that allows compiled Java code to execute on any platform that supports Java without requiring further compilation. Since its initial release in 1995, Java has become a widely used technology for designing desktop, online, and mobile applications. Java is a popular choice for enterprise-level applications because of its reputation for dependability, ease of use, and security features.
    James Gosling created Java in 1995 at Sun Microsystems Inc.; Oracle Corporation eventually purchased the program. It is an elementary language for programming. It is simpler to create, compile, and debug in Java.

    ReplyDelete
  48. Students who are pursuing BA from various universities can check their ba 1st year time table online and prepare for their exams accordingly.

    ReplyDelete
  49. interesting information. keep posting regularly. Python Training In Pune

    ReplyDelete