---
title: "Can we call static method with null object?"  
description: "Can we call static method with null object?"  
author: "Anonymous User"  
published: 2015-09-02  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/22800/can-we-call-static-method-with-null-object  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Can we call static method with null object?

Yes we can call because static method is bound at compile time and only type of variable is used for static binding not the value of object. It’s not a good practice to call static method by instance, always call static method in Java by using class name like Math.max()

## Answers

### Answer by Anonymous User

Yes we can call because static method is bound at compile time and only type of variable is used for static binding not the value of object. It’s not a good practice to call static method by instance, always call static method in Java by using class name like Math.max()


---

Original Source: https://www.mindstick.com/interview/22800/can-we-call-static-method-with-null-object

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
