How to find the largest value from the given array.
No Answer is Posted For this Question
Be the First to Post Answer
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
What is complexity in java?
Is oracle java 11 free?
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?
what is abstract class in Java?
Name container classes in java programming?
What’s the difference between applets and standalone program?
Why bytecode is called bytecode?
How to retrieve data from database in java using arraylist?
What is the advantage of preparedstatement over statement?
What is the use of anonymous inner classes ?
What is the use of optional ?