What is :: operator in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Garbage collection in java?

0 Answers  


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

1 Answers  


Can we override a variable in java?

0 Answers  


What is the list interface?

0 Answers  


what are upcasting and downcasting?

5 Answers  






If we don’t want some of the fields not to serialize how to do that?

0 Answers  


What is the blank final variable?

3 Answers  


What is the use of coding?

0 Answers  


What is the purpose of the File class?

3 Answers  


Is minecraft java edition free?

0 Answers  


How to create a fecelet view?

0 Answers  


what is type of statement in jdbc connection?

3 Answers  


Categories