How do you escape in java?
No Answer is Posted For this Question
Be the First to Post Answer
Difference between object instantiation and construction ?
How can you read an integer value from the keyword when the application is runtime in java? example?
If goto and const is reserve words than why it is not work in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Which keyword specify that a variable is effectively final ?
In case of inheritance what is the execution order of constructor and destructor?
diffrence b\w println() and printf()
Does sprintf allocate memory?
What is an example of character?
what is difference between requestprocessor and request dispatcher?
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
write java code to print second max number in the array