The Artima Developer Community
Sponsored Link

Java Buzz Forum
Can we override static method in java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Arpit Mandliya

Posts: 194
Nickname: mandliya23
Registered: May, 2017

Arpit Mandliya is Java programmer working on Core java, Spring, Hibernate
Can we override static method in java Posted: Oct 29, 2017 4:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Arpit Mandliya.
Original Post: Can we override static method in java
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
Latest Java Buzz Posts
Latest Java Buzz Posts by Arpit Mandliya
Latest Posts From Java tutorial for beginners

Advertisement

No, we can not override static method in java. Static methods are those which can be called without creating object of class,they are class level methods. On other hand,If subclass is having same method signature as base class then it is known as method overriding. Its execution decided at run time. Below are the reasons why we can’t override static method in java:- Static methods are those which belong to the class.They do not belong to the object and in overriding, object decides which method is to be called. Method overriding occurs dynamically(run time) that means which method is to be

The post Can we override static method in java appeared first on Java2Blog.

Read: Can we override static method in java

Topic: Collectors toCollection(Supplier collectionFactory) example - Java 8 Streams Previous Topic   Next Topic Topic: Difference between OCAJP and OCPJP Certification Exams


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2017 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us