What is slash r?
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 all methods are used to prevent thread execution ?
When should you use arraylist and when should you use linkedlist?
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?
What is the diffrence between inner class and nested class?
What is the difference between the prefix and postfix forms of the ++ operator?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Is age discrete or continuous?
What are the different data types in java?
Explain Stream Tokenizer?
describe synchronization in respect to multithreading? : Java thread
what state does a thread enter when it terminates its processing? : Java thread