12 Can the main method be overloaded?
Yes, the main method can be overloaded as many times as we want. Nevertheless, JVM prefers to call the main method with the help of its predefined calling method.Â
Example:
    public static void main(String args[]) {
        System.out.println(” Main Method”);
    public static void main(int[] args){
        System.out.println(“Overloaded Integer array Main Method”);
    public static void main(char[] args){
        System.out.println(“Overloaded Character array Main Method”);
    public static int main(double[] args){
        System.out.println(“Overloaded Double array Main Method”);
    public static void main(float args){
        System.out.println(“Overloaded float Main Method”);
What is JDBC DatabaseMetaData interface?
The DatabaseMetaData interface returns the information of the database such as username, driver name, driver version, number of tables, number of views etc.
1 Define Copy Constructor in Java
A Copy Constructor in Java is a constructor that initializes an object through another object of the same class.
8 Explain Method Overloading in Java.
The process of creating multiple method signatures using one method name is called Method Overloading in Java. Two ways to achieve method overloading are:
Core Java Interview Questions for Intermediates
In this section, you will find some frequently asked Core Java interview questions for intermediate-level software developers and engineers.
What are the JSP implicit objects?
JSP provides 9 implicit objects by default. They are as follows:
Object | Type |
1) out | JspWriter |
2) request | HttpServletRequest |
3) response | HttpServletResponse |
4) config | ServletConfig |
5) session | HttpSession |
6) application | ServletContext |
7) pageContext | PageContext |
8) page | Object |
9) exception | Throwable |
12 A single try block and multiple catch blocks can co-exist in a Java Program. Explain.
One or more catch blocks can follow a try block. Each catch block must have a unique exception handler. So, if you want to perform multiple tasks in response to various exceptions, use the Java multi-catch block.
Q1 What are the important methods of Java Exception Class?
Exception and all of it’s subclasses doesn’t provide any specific methods and all of the methods are defined in the base class Throwable.