Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
3 7963class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?
2 7370class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }
8 18364
Explain the difference between abstraction and encapsulation.
Can we override private method?
What are the main uses of this keyword?
What is the purpose of nested class in java?
Can a main method be declared final?
What is the difference between static (class) method and instance method?
What are the rules for variable declaration?
What is treeset and treemap in java?
What is default switch case? Give example.
What is the this keyword?
What is t in generics in java?
What are the types of inner classes (non-static nested class) used in java?
What is an iterator java?
What is the difference between preemptive scheduling and time slicing in java programming?
Explain an algorithm to find depth of a binary tree.