Showing posts with label Advanced Java Programming. Show all posts

How to increase your programming skills?

Today in this article I will be sharing how to increase your coding skills. If you are wondering how you can become good at programming, you are at the correct page. So, lets begin the count down. So, lets begin the programming tips one by one.
  1. Format the code correctly: Learn to format your code correctly. If you are using any professional IDE like eclipse, you have to learn to format code correctly. In eclipse, press CTRL  + SHIFT + F. 
  2. Ensure braces always pair up: Make sure all your code braces pair up correctly. To ensure you avoid any error, immediately close your brace as soon you begin it. Some IDE does this for you automatically. 
  3. Build programs one step at a time: Try to build your program in smaller version. Do not try to complete the software at once. Try and run something beginner version and later elaborate your code.
  4. Google like crazy: Try to GOOGLE any problem you encounter. Try to copy and paste your error in Google. Dont forget to remove the line number from the error. 
  5. Smallest working program as possible: Try to solve any problem in smallest possible code. Do not try to elaborate your code. Smaller code can be better than writing same code in longer format. 
  6. Read stack traces from the top line down: When you debug your program, try to solve the problem from top to bottom. Bottom error might be evolved from top error. 
  7. Write software that interests you: Programming is monotonous job. Try to code what interests you. 
  8. Type rather than read: When you are reading any coding tutorial, try to code, run and implement than reading or writing code into your note. 
  9. Name variables, functions, subroutines descriptively: Show professionalism in writing name of variables. Instead of writing any string variable a for Name would be less descriptive than writing "Name" as variable. 
  10. Learn to touch type: If you can code the program without looking at your keyboard, that would make you a better programmer than looking at the keyboard. 
Learn more »

JAVA Program to find the root of any integer using Newton Rapson Method.

package mathematicscomplexity;

import java.util.Scanner;

/**
 *
 * @author drcodeskm
 */
public class newtonRapsonMethod {
public static void main (String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        double N;
        double ai=0;
        double xk;

        System.out.println("Type the integer whose square root you would like to compute: ");
        N = keyboard.nextDouble();
        xk = N;
        do{
                ai = ((xk + N / xk) / 2.0);
                xk = ai;
                                 System.out.println(ai);
       
        }while(Math.abs(ai - xk) < 0.0000001);
              

    }
}
Learn more »

Some important questions related to Advance Java Programming.


JAVA
1.     What do you mean by Java architecture? Explain with block diagram.
2.      What do you mean by Java Interfaces? Explain its importance.
3.      What do you mean by exception handling? How is it done in JAVA?
4.      Explain the concepts of inheritance in JAVA.
5.     Explain file system concept in JAVA.
6.     What do you mean by event handling? Explain in detail about event handling.
7.     What do you mean by JDBC? What are its types? Explain uses of JDBC.
8.     Differentiate between TCP and UDP. Explain network class in JDK.
9.     What do you mean by Sockets? Explain TCP sockets and UDP sockets.
10.  What do you mean by JAVA beans? How do we create beans in JAVA?
11.   What is servlets? Explain its life cycle.
12.  What are the advantages of JSP?  Explain JSP architecture.
13.  Write a Chat application program in JAVA.
14.  Write RMI program to add, multiply two numbers.
15.  What is RMI? Explain its architecture.
16.  What is CORBA? Explain its architecture and functions.
Learn more »