115 Java Interview Questions and answers-ultimate list (I), 115 java

Source: Internet
Author: User

115 Java Interview Questions and answers-ultimate list (I), 115 java

This article will discuss various types of interview questions in Java interviews, which allow employers to test candidate's Java and general Object-Oriented Programming capabilities. The following sections are divided into two chapters: the first one will discuss object-oriented programming and its features, FAQs about Java and its functions, Java Collection classes, garbage collectors, the second article mainly discusses Exception Handling, Java small applications, Swing, JDBC, remote method call (RMI), Servlet and JSP.

Start!

Directory

Object-Oriented Programming (OOP)

Common Java Problems

Java thread

Java Collection class

Garbage Collector

Object-Oriented Programming (OOP)

Java is a computer programming language that supports concurrency, class-based, and object-oriented. The advantages of object-oriented software development are listed below:

  • Code development is modular and easier to maintain and modify.
  • Code reuse.
  • Enhance code reliability and flexibility.
  • Increase the comprehensibility of the Code.

Object-Oriented Programming has many important features, such as encapsulation, inheritance, polymorphism, and abstraction. The following sections analyze these features one by one.

Encapsulation

Encapsulation provides objects with the ability to hide internal characteristics and behaviors. The object provides some methods that can be accessed by other objects to change its internal data. In Java, there are three modifiers: public, private, and protected. Each modifier grants different access permissions to other objects located in the same package or under different packages.

Some advantages of encapsulation are listed below:

  • You can hide the attributes of an object to protect the internal state of the object.
  • This improves code availability and maintainability, because the behavior of objects can be changed or extended independently.
  • Disable poor interaction between objects to improve modularity.

Refer to this document for more information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.