Without creating a new object, How you can retrieve a
String or other object?
Answer / ashokmail.java@gmail.com
using static , we can access object without creating new
instance.
| Is This Answer Correct ? | 4 Yes | 2 No |
My interview asked what is dynamic variable in java and where we use them.
What are the types of relation?
What are "class access modifiers" in Java?
What are multiple inheritances?
Explain treeset?
In java, how many ways you can take input from the console?
what is template design pattern?
hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class
Explain wait() method of object class ?
What is meant by final class?
Can you pass functions in java?
Which package is used for pattern matching with regular expressions?