Tinidog
  • Home
  • Login
  • Register

What are the restrictions that are applied to the Java static methods?

Solution:

Two main restrictions are applied to the static methods.

  • this and super cannot be used in static context as they are non-static.
  • The static method can not use non-static data member or call the non-static method directly
java
0 votes
0 favorites
261 views
maurice asked 11 months ago
0 answers
Author
maurice
maurice

Credit: 3675

Nothing
Author's Other questions
Write a program to calculate the difference between the sum of the odd level and even level nodes of a Binary Tree
Write a program in Java to find the maximum and minimum value node from a circular linked list.
Write a program in Java to create a doubly linked list containing n nodes
How to perform quicksort in Java?
How to perform merge sort in Java?
How to perform Linear Search in Java?
How to perform Selection Sort in Java?
How to perform Binary Search in Java?
How to perform Bubble Sort in Java?
Can RMI and CORBA based applications interact?
What is JRMP?
What is the use of HTTP-tunneling in RMI?
What are the steps involved to write RMI based programs?
What is the purpose of stub and skeleton?
What do you understand by the bean persistent property?
What is the purpose of using the Java bean?
What is a JavaBean?
How will you load a specific locale?
What is Locale?
Can you write a Java class that could be used both as an applet as well as an application?
©2022 Tinidog powered by Termi