Currently browsing author

Krishna Srinivasan, Page 55

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -11

1 . Consider following classes: What will be the output of running class Test? false false true false true false true true …

java-thumbnail

ArrayList in Java

ArrayList is most widely used collections API for storing the list of objects. This class is equivalent to Vector, except that it …

java-thumbnail

Runtime Exceptions in Java

Runtime exceptions are need not be handled by the programs. Generally RuntimeExceptions are exceptions that can be prevented programmatically.E.g NullPointerException, ArrayIndexOutOfBoundException. If …

java-thumbnail

Exception Handling in Java

Exception handling is one of the important task for every programmer. For a successful project completion, proper exception handling is important. Exception …

java-thumbnail

Constructor in Java

Constructors are special type of methods that are invoked at the time of creating the objects. If you use new keyword for …

java-thumbnail

Method Overloading in Java

Method Overloading is the concept of writing multiple methods with the same name. Here the common characteristic is only the name. Parameters …

java-thumbnail

Method Overriding in Java

Method Overriding is concept of overriding a same method in the child class. This is fall under the dynamic polymorphism  or run …