• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Java Interview Questions Answers

Question - 77 : - How does Java handle integer overflows and underflows?

Answer - 77 : - It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.

Question - 78 : - What is the difference between shallow copy and deep copy?

Answer - 78 : - Shallow copy shares the same reference with the original object like cloning, whereas the deep copy get a duplicate instance of the original object. If the shallow copy has been changed, the original object will be reflected and vice versa.

Question - 79 : - What modifiers may be used with an inner class that is a member of an outer class?

Answer - 79 : - A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.

Question - 80 : - Which containers use a FlowLayout as their default layout?

Answer - 80 : - The Panel and Applet classes use the FlowLayout as their default layout.

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners