Author name: Neeraj Mishra

Solve Cannot make a static reference to the non-static method Error

Here you will learn to solve error “cannot make a static reference to the non-static method” or “non static method cannot be referenced from a static context”. Lets take one example where this error occurs. When you will compile below code then you will get an error.

Why this Error Occurs? This error occurs …

Solve Cannot make a static reference to the non-static method Error Read More »

JDBC Transaction Management in Java with Example

Here you will learn to implement JDBC transaction management in java. By default database is in auto commit mode. That means for any insert, update or delete operation the changes takes place immediately in database. What is Transaction? Transaction involves several sql queries that are considered as one unit. For example money transfer done in …

JDBC Transaction Management in Java with Example Read More »

Difference Between Java, Core Java and Advance Java

Here you will learn about difference between java, core java and advance java. Mostly beginner java programmers have confusion about these 3 terms in their mind. Below I have explained them to clear their confusion. Java It is a high level programming language. Java is available in three flavors. Java Standard Edition (J2SE or JSE) …

Difference Between Java, Core Java and Advance Java Read More »

Can We Override static Method in Java?

Can we override static method? is another important java interview question. Lets first take a look on what is method overriding. Method Overriding: When parent and child class have methods with same signature then it is called as method overriding. At run time compiler decides which method to call depending upon object type. Also Read: Can We Overload …

Can We Override static Method in Java? Read More »