Question: Write a simple query to show data in a single resultset. Resultset should have department table data first order by deptname and followed immediately by sub-department table data also ordered by deptname. Both tables data should be wrapped in a single resultset, with the above criteria.
Technical Lead Java Interview Questions
18,869 technical lead java interview questions shared by candidates
Q. What is the difference between Singleton and Immutable object
How do you nullify or remove the unused objects from memeory?
what is the output public class Barclays { static class A{ A(){ f(); } public void f(){ System.out.println("A ctor"); } } static class B extends A{ B(){ f(); } public void f(){ System.out.println("B ctor"); } } public static void main(String[] args) { B b = new B(); b.f(); A a = new A(); a.f(); } }
Spring default scope
-Can a class be final? - Difference between Application context and bean factory?
Write a method to remove even numbers from list without using any other collection.
program
You have a birthday cake and have exactly 3 cuts to cut it into 8 equal pieces. How do you do it?
1. Implement Comparable Interface? 2. Write a Employee class and sort its properties age and Emp name? 3. How actually hashmap works in Java? 4. How the size of ArrayList grows dynamically?
Viewing 221 - 230 interview questions