Java Interview Questions Level-7

Java Interview Questions Level-21

501. Is there any limitation of using Inheritance?
502. When is the ArrayStoreException thrown?
503. Can you call one constructor from another if a class has multiple constructors?
504. What's the difference between the methods sleep() and wait()?
505. When ArithmeticException is thrown?
506. What is a transient variable?
507. What is the Collections API?
508. Does garbage collection guarantee that a program will not run out of memory?
509. The immediate superclass of the Applet class?
510. Which Java operator is right associative?
511. What is the difference between a break statement and a continue statement?
512. If a variable is declared as private, where may the variable be accessed?
513. List primitive Java types?
514. What is the relationship between clipping and repainting under AWT?
515. Which class is the immediate superclass of the Container class?
516. What class of exceptions are generated by the Java run-time system?
517. Under what conditions is an object's finalize() method invoked by the garbage collector?
518. How can a dead thread be restarted?
519. Which arithmetic operations can result in the throwing of an ArithmeticException?
520. Variable of the boolean type is automatically initialized as?
521. Can try statements be nested?
522. What are ClassLoaders?
523. What is the difference between an Interface and an Abstract class?
524. What will happen if static modifier is removed from the signature of the main method?
525. What is the default value of an object reference declared as an instance variable?