Question: - What is a variable? Where is it used? How can we create a variable in Java? - What is the camel hump notation? Please


- What is a variable? Where is it used? How can we create a variable in Java? - What is the camel hump notation? Please give an example. - Please use Java code for the following cases: declare an integer variable declare an integer variable and initialize 6 declare an integer variable and assign 8 declare an integer constant declare an integer constant and initialize 2 - What are the wrongs following variable definitions int for =10; String class; int double =10.0; int 6 pack =6; int 12pack; - What is a constant? Where is it used? What are the differences between variables? - What is the advised method for formatting a constant name? - Please explain and give samples for the three types of Java Comments. - What is the result following Java codes int fiftyMillion =50000000; System.out.println(100* fiftyMillion); - What is wrong with the following variable declaration? int ounces per liter =28.35; Please prepare a state diagram for the lines 4 and 8 1 double a=5.0; 2 double b=7.0; 3 String c=" MIS 103"; 4 5b=a+5.0; 6a=b+5.0; 7 String c=c+ "Midterm Exam"; 8 Write a Java code that covers the following steps: Prompt to screen to enter a user name and then surname separately. Check whether inappropriate entering a number, space, or null and warn in case of inappropriate show the whole length of the name and surname together, then the first letters of the name and surname
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
