Questions

  1.  What is a class?
  2.  What is object
  3.  What is the difference between instance variable and a local variable?
  4.  What is Constructor? Types of Constructor?
  5.  Difference between Break and Continue?
  6.  To exit the system from the current execution what command is used in java?
  7.  Difference between for and foreach loops in java and use of it?
  8.  Can we have multiple public class within a class?
  9.  What is inheritance? Types of inheritance? Does multiple inheritances allow in java? If not, why?
  10.  What is polymorphism? How we can achieve it?
  11.  Difference between method overloading and method overriding?
  12.  Can we achieve method overloading when two methods have an only difference in return type?
  13.  Method overloading and overriding examples in the Selenium project?
  14.  What is encapsulation?
  15. What is final and super keyword? Difference between them?
  16. Explain runtime polymorphism and compile-time with examples?
  17. Can the final/Static method be overloaded?
  18. Can final/Static methods be overridden?
  19. Can we execute a class without a main method?
  20. What is Package?
  21. What is an Abstract Class? Write an example code?
  22. What is an Interface? What is the difference from the Abstract class?
  23. Can we use private and protect access modified inside an Interface?
  24. Can multiple inheritances support in Interface?
  25. Examples of Abstract and Interface used in the selenium project?
  26. What is Exception and what is the base class of it?
  27. What is done in finally block?
  28. What is the difference between Throws and Throw?
  29. Collection type in java?
  30. Difference between Array and ArrayList?
  31. Difference between Set and HashSet?
  32. Difference between HashMap and HasSet?
  33. Difference between ArrayList and LinkList?
  34. How do you use Map collection your project?
  35.  Can we have a duplicate key value in HasMap?
  36. How to fetch values from a hashmap?

Java Programs

1. Write a Code to generate Random numbers.

2. Write code to verify a number is a perfect number or not.

3. Fibonacci series from 1 to 10.

4. Write a program to find a Factorial of a number.

5. Swap two number s without using the third variable.

6. Program to find the greatest of three numbers.

7. An Array of numbers given. .Find the largest two number and print it

8. Reverse a number.

9. Verify if a given number is a palindrome or not.(same concept of reversing a number)

10. Armstrong number program.

11. A String is given to remove the white spaces, reverse it and print the only odd position characters.

12. Check if a string is an anagram of another string.

13. A string is given make few characters to upper case as asked.

14. In a String print the occurrence of each character.

15. In a Statement check how any duplicate strings are there and remove them.

16. Use split to print each word of a statement.

17. Find the substring of a String.

18. Remove duplicate characters from a string

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

slothttps://www.rajschool.com/slot onlinehttps://sai-ban.com/https://britoli.com/https://www.anabias.com/https://bcrbltd.com/https://s2aconsultingfze.com/https://rock-poker.com/https://koinhoki88.org/https://koinhoki88.net/https://rawsolla.com/https://koinhoki888.com/https://koinhoki88.com/https://infomedan.net/qqplazaslot gacorslot gacor koinhoki88slot gacor terbaru koinhoki88koinhoki88koinhoki88slot777https://usfinancehelp.com/https://collectingdiecasttoystoday.com/https://nyonyaguru.com/https://topindo-pulsa.com/https://gojekonline.com/https://dafrastar.com/https://www.reliantholdings.net/https://www.opalcitysview.com/https://lumarca.info/https://alt-qqaxioo.com/https://www.capuletlondon.com/https://www.tithaimart.com/https://www.trungvuongus.com/https://tropicalbioenergy.com/https://www.capitol-peak.com/https://pisswife.com/https://gamvipvn.com/https://www.elfutbolesnuestro.com/https://ampdsmart.com/https://schiffsilver.com/https://theicemall.com/https://shebenik.com/https://popvoxawards.com/https://www.adwebconsultancy.com/https://www.technotchsolutions.com/https://threekookaburras.com/https://marcjacobsonsale.com/https://www.forexrehberim.net/https://dreamlifefactory.com/https://www.videosocialcreative.com/https://www.oregonwetlands.net/https://www.americaneve.com/https://www.iamthelongtail.com/https://www.privatelivesbroadway.com/https://travelamateurs.com/https://sustaintheline.com/https://geekforcefive.com/https://galaksinews.com/https://sejutateknologi.com/https://harimausumateranews.com/https://diarysaham.com/https://lacakonline.com/https://undangansah.com/https://kottakkalayurvedapharmacy.com/https://kabforums.org/https://bhootmedia.com/https://erectie-goedkoop.com/https://heylink.me/Bandargaming-/https://qqcrownbos.com/https://eastofanfield.com/https://nyonyabesar.com/https://direktoriwisata.com/https://bbqburgersmore.com/https://bjwentkers.com/https://mareksmarcoisland.com/https://richmondhardware.com/https://technostrix.com/https://troostcoffeeandtea.com/https://www.majestkids.com/