This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label java programming. Show all posts
Showing posts with label java programming. Show all posts

java do while loop example code

JAVA Do While Loop Example Code


In this post we will discuss Java Do While loop. A Java Do While Loop is similar as it is in C or C++ Language. A Java do while loop is some how different from for loop and while loop. The specialty of do while  loop is that , its body gets at least once, even the loop condition is false.

JAVA Do While Loop example



Before we go into details of a do while loop, let us discuss what are loops and why loops are needed in any programming language. The answer to this question is , sometimes in programming we need to repeat a set of statements for a number of times. Writing same code again and again in the same program is difficult for a programmer. Also it increases program length. Suppose in a program , there is need of writing a string "Hello " 100 times. Then we have to write print statement 100 times. Writing print statement 100 times in a single program for the same output is difficult. In that case we can use a loop of 100, and in that case we have to use only a single loop statement.

Print ("hello");

Print ("hello");

-

-

Print ("hello");

The alternative way is use of a for loop.

for (i=1;i<=100;i++)

{

print("Hello");

}

You can see the difference.


Do While Loop

A Java Do while loop executes a set of of Java statements as long as the loop condition evaluates to true.

In some programming conditions ,we require a loop that executes at least once before evaluating Boolean condition.

Java Do while loop is Exit Controlled Loop

General Syntax of Java do while loop


The general syntax of a Java do while loop  is:
do
{
set of statements to be repeated;
} while(condition);
Example:

class Test 
{
   public static void main(String args[]){
      int i = 1;

      do{
         System.out.print("value of i : " + i );
         i++;
         System.out.print("\n");
      }while( i < 11 );
   }
}

Usually it is recommended to avoid the use of do-while loop. For loop and while loop are more convenient loops in Java.

Summary

 This was all about do while loop in Java.


Top 50 Best Java Project Ideas for Engineering students and beginners

Top 50 Best Java Project Ideas for Engineering students and beginners

The aim of the post Top 50 best Java Project ideas for engineering students and beginners is to suggest project ideas for students of different degree and diploma programs. We hope the following list of Top 50 Best Java Project Ideas for Engineering students and beginners will ve helpful for all that have interest in the respective field.

  1. Atm Simulation System

  2. Bank Application System

  3. Basic Library System

  4. Advanced Payroll System

  5. Bus Scheduling and Booking System

  6. Car Sales System

  7. Cricket Game in Java

  8. Dice Application System

  9. Employee Information and Payroll System

  10. Client Server application

  11. College Management System

  12. Complete Banking System

  13. Evaluation System

  14. Budget Controlling System

  15. Bug Tracking system

  16. Fashion Model Management System

  17. Flight Reservation System

  18. Java Exam System

  19. Medical Diagnostic System

  20. Hospital Management System

  21. Inventory System

  22. Online Address Book

  23. Personnel System

  24. Mobile Phone Anti Virus

  25. Network Banking System

  26. News System

  27. Online Yearbook with SMS

  28. Picture Search Machine

  29. Placement Office Automation

  30. Practical Aircraft Position

  31. Pharmacy  management system

  32. Phone Book System

  33. Photo Album System

  34. Student Counseling Management System

  35. Telephone Billing System

  36. internet banking

  37. online courses

  38. online testing site

  39. Short Course Management System

  40. Who wants to be a millionaire

  41. Result Intimation System

  42. Course registration system

  43. Human resource management system

  44. Online exam

  45. Shopping Cart Example

  46. Airlines

  47. Chess two player

  48. Online shopping

  49. Parking system

  50. Airline Reservation System

You can develop this Java Project like a web portal for booking airline tickets. The aim of this project is to design a reservation system for Airlines. By using this Java project customers can book air line tickets online. Customers can search availability of seats on a particular date.

Wrapping it up

So, these are some Top 50 best java project ideas for engineering students and beginners you  can go through to take as a reference. Feel free to give your suggestions in comment. Help us to spread this more using social share buttons given below.

Best Top 101 Java Interview Questions and Answers for freshers and experienced

Best Top 101 Java Interview Questions and Answers for freshers and experienced


The idea of this post Best Top 101 Java Interview Questions and Answers for freshers and experienced is to give an idea of questions to viewers of this post.  Best Top 101 Java Interview Questions and Answers for freshers and experienced are beneficial for students as well as candidates appearing for interviews.

  1. What is Java technology ?

  2. What are the benefits of OOPS?

  3. What is Java Development Kit (JDK) ?

  4. What are the Major Features of Java Technology Architecture ?

  5. What is Java Virtual Machine (JVM) ?

  6. What are the advantages of JVM?

  7. What are classpath variables?

  8. What was the earlier name of Java?

  9. What are the steps involved in Java Application Execution ?

  10. Explain the architecture of code execution process inside JRE ?

  11. What is Garbage Collector ?

  12. What an object contains?

  13. What is class loader ?

  14. Why Java is known as interpreted and compiled?

  15. Which feature of C language is not present in Java?

  16. What is Collection API?

  17. What is byte code verifier ?

  18. Explain different way of using thread?

  19. Why Java is known as a platform neutral language?

  20. What is Java API?

  21. What is the difference between static and non-static variables?

  22. Can main() method be declared final?

  23. What is the purpose of garbage collection in Java, and when is it used?

  24. What are the features of OOPS?

  25. What is encapsulation?

  26. Define Applet in JAVA

  27. What are the verification done by byte code verifier ?

  28. What is JDBC in JAVA

  29. What is inheritance?

  30. Explain the usage of Java packages.

  31. How you can force the garbage collection?

  32. What is abstraction?

  33. What is single inheritance?

  34. What is a Constructor ?

  35. How do we access data members of a class in java?

  36. What are the uses of Java packages?

  37. What is the significance of import keyword?

  38. What is user defined package in Java?

  39. How to place compiled Java file in a different location ?

  40. What is access modifier and what are its types?

  41. What is static keyword?

  42. What is a transient variable?

  43. What is native keyword?

  44. What is an abstract class?

  45. How to define an Abstract class?

  46. What is object class in java?

  47. What are the limitations of array?

  48. What is set interface about?

  49. What is Enumeration interface?

  50. Explain different way of using thread?

  51. Explain in your own words the "bottom line" benefits of the use of an interface.

  52. Compare Array List vs Linked List

  53. What is the difference between private, protected, and public?

  54. What is method overriding in JAVA?

  55. Do interfaces have member variables?

  56. How will you establish the connection between the servlet and an applet?

  57. What are the threads will start, when you start the java program?

  58. Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

  59. What is the difference between lightweight and heavyweight component?

  60. What interface do you implement to do the sorting?

  61. What are the benefits of using threads in an application?

  62. What are some advantages and disadvantages of Java Sockets?

  63. What are the differences between process and threads?

  64. What is single threaded and multi threaded process?

  65. What do you mean by Final class in Java

  66. Name the containers which uses Border Layout as their default layout?

  67. What are wrapper classes in JAVA?

  68. What is the difference between an Interface and an Abstract class?

  69. How to use threads in java?

  70. Explain the usage of the keyword transient?

  71. What is static in java?

  72. What if I do not provide the String array as the argument to the method?

  73. What do you mean by Run time Exceptions in Java?

  74. Describe thread policy in Java?

  75. What do you mean by a Classloader?

  76. What are the ways in which you can instantiate a thread?

  77. What are the states of a thread?

  78. What is the super class of Hashtable?

  79. What is a socket?

  80. What are the different types of qualifier and what is the default qualifier?

  81. What do you mean by RMI and how it is useful?

  82. Name any two Java IDE’s?

  83. How are this() and super() used with constructors?

  84. What is the use of preparedstatement?

  85. What are the different driver types available in JDBC?

  86. What is a Marker Interface?

  87. Is JDBC-ODBC bridge multi-threaded?

  88. What is a lightweight component?

  89. What is a heavyweight component?

  90. How does the Java default constructor be provided?

  91. What if the static modifier is removed from the signature of the main() method?

  92. What is thread scheduling and what does it determines?

  93. When you declare a method as abstract, can other nonabstract methods access it?

  94. Is JDBC-ODBC bridge multi-threaded? -

  95. What are the implicit packages that need not get imported into a class file?

  96. What is the use of serializable?

  97. What are the different level lockings using the synchronization keyword?

  98. What is callable statement?

  99. Can a abstract method have the static qualifier?

  100. What is the eligibility for a object to get cloned?

  101. What is the difference between a constructor and a method?

Wrapping it up


So, these are some important java questions you  can go through to take as a reference for your competitive exams. Feel free to give your suggestions in comment. Help us to spread this more using social share buttons given below.

Top 101 Core Java Interview Questions and Answers for Experienced with examples


Top 101 Core Java Interview Questions and Answers for Experienced with Examples 


In this post "Top 101 Core Java Interview Questions and Answers for Experienced with examples",we will list core java interview questions. We will update this post "Top 101 Core Java Interview Questions and Answers for Experienced with examples" from time to time. Viewers are also welcome for suggesting any questions related to this post.

Top 101 Core Java Interview Questions and Answers for Experienced with example
Top 101 Core Java Interview Questions and Answers for Experienced with examples

  1. What is Java technology ?

  2. What are the benefits of OOPS?

  3. What is Java Development Kit (JDK) ?

  4. What are the Major Features of Java Technology Architecture ?

  5. What is Java Virtual Machine (JVM) ?

  6. What are the advantages of JVM?

  7. What are classpath variables?

  8. What was the earlier name of Java?

  9. What are the steps involved in Java Application Execution ?

  10. Explain the architecture of code execution process inside JRE ?

  11. What is Garbage Collector ?

  12. What an object contains?

  13. What is class loader ?

  14. Why Java is known as interpreted and compiled?

  15. Which feature of C language is not present in Java?

  16. What is Collection API?

  17. What is byte code verifier ?

  18. Explain different way of using thread?

  19. Why Java is known as a platform neutral language?

  20. What is Java API?

  21. What is the difference between static and non-static variables?

  22. Can main() method be declared final?

  23. What is the purpose of garbage collection in Java, and when is it used?

  24. What are the features of OOPS?

  25. What is encapsulation?

  26. Define Applet in JAVA

  27. What are the verification done by byte code verifier ?

  28. What is JDBC in JAVA

  29. What is inheritance?

  30. Explain the usage of Java packages.

  31. How you can force the garbage collection?

  32. What is abstraction?

  33. What is single inheritance?

  34. What is a Constructor ?

  35. How do we access data members of a class in java?

  36. What are the uses of Java packages?

  37. What is the significance of import keyword?

  38. What is user defined package in Java?

  39. How to place compiled Java file in a different location ?

  40. What is access modifier and what are its types?

  41. What is static keyword?

  42. What is a transient variable?

  43. What is native keyword?

  44. What is an abstract class?

  45. How to define an Abstract class?

  46. What is object class in java?

  47. What are the limitations of array?

  48. What is set interface about?

  49. What is Enumeration interface?

  50. Explain different way of using thread?

  51. Explain in your own words the "bottom line" benefits of the use of an interface.

  52. Compare Array List vs Linked List

  53. What is the difference between private, protected, and public?

  54. What is method overriding in JAVA?

  55. Do interfaces have member variables?

  56. How will you establish the connection between the servlet and an applet?

  57. What are the threads will start, when you start the java program?

  58. Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

  59. What is the difference between lightweight and heavyweight component?

  60. What interface do you implement to do the sorting?

  61. What are the benefits of using threads in an application?

  62. What are some advantages and disadvantages of Java Sockets?

  63. What are the differences between process and threads?

  64. What is single threaded and multi threaded process?

  65. What do you mean by Final class in Java

  66. Name the containers which uses Border Layout as their default layout?

  67. What are wrapper classes in JAVA?

  68. What is the difference between an Interface and an Abstract class?

  69. How to use threads in java?

  70. Explain the usage of the keyword transient?

  71. What is static in java?

  72. What if I do not provide the String array as the argument to the method?

  73. What do you mean by Run time Exceptions in Java?

  74. Describe thread policy in Java?

  75. What do you mean by a Classloader?

  76. What are the ways in which you can instantiate a thread?

  77. What are the states of a thread?

  78. What is the super class of Hashtable?

  79. What is a socket?

  80. What are the different types of qualifier and what is the default qualifier?

  81. What do you mean by RMI and how it is useful?

  82. Name any two Java IDE’s?

  83. How are this() and super() used with constructors?

  84. What is the use of preparedstatement?

  85. What are the different driver types available in JDBC?

  86. What is a Marker Interface?

  87. Is JDBC-ODBC bridge multi-threaded?

  88. What is a lightweight component?

  89. What is a heavyweight component?

  90. How does the Java default constructor be provided?

  91. What if the static modifier is removed from the signature of the main() method?

  92. What is thread scheduling and what does it determines?

  93. When you declare a method as abstract, can other nonabstract methods access it?

  94. Is JDBC-ODBC bridge multi-threaded? -

  95. What are the implicit packages that need not get imported into a class file?

  96. What is the use of serializable?

  97. What are the different level lockings using the synchronization keyword?

  98. What is callable statement?

  99. Can a abstract method have the static qualifier?

  100. What is the eligibility for a object to get cloned?

  101. What is the difference between a constructor and a method?

Wrapping it up

We Hope this post Top 101 Core Java Interview Questions and Answers for Experienced with examples is informative for you. You  can go through to take as a reference for your competitive exams. Feel free to give your suggestions in comment. Help us to spread this more using social share buttons given below.