can we access the method of class without creating the
object of the class
Answers were Sorted based on User's Feedback
Answer / chanki
using static member(static)before d methode name,we can
directly call dat method widout creating object of dat
class..
for mat should be:
classname.methodname();
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / mmrps
Not possible but abstract class methods can access with out
creating object.The normal class methods with out accessing
that class object.
Is This Answer Correct ? | 2 Yes | 7 No |
How to find the given number is a prime number or not by getting input from the user
What is difference overloading and overriding?
Why declare Main() method as a static in java ?
How is hashset defined in java?
What is functional interface in java example?
What are use cases?
what is platform
Why arraylist is used in java?
How many types of memory areas are allocated by JVM in java?
Which one of the following suits the description of a string better: derived or primitive?
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.
Are arrays passed by reference in java?