Skip to main content
2 of 2
added 2 characters in body; edited title
Muhammad Soliman
  • 24k
  • 6
  • 115
  • 81

objects - calling object instance inside a static method

public class create{ public static void main(String[] args){ Student myStudent = new Student(); ... } public static String makeStudent() { student.set(x); student.get(x); }} public Student{ ... } 

Is it possible to call an object instance in a static method when the instance was created in the main method?