You can not predict all of the consequences perfectly.
Access to a huge informational background, High degree of visibility, and Distance Education
Answer:
import java.util.Scanner;
public class HelloIDE
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter your name: ");
String name = input.nextLine();
name = name.trim();
if(name.equals(""))
name = "stranger";
System.out.println("Hello, " + name + "!");
}
}
Explanation:
import the Scanner class to be able to get input from the user
Create an object of the Scanner class called input
Ask the user to enter the name and set it to the name
Trim the name using trim() method, removes the whitespaces from the string
Check the name. If name is equal to "", set the name as stranger. This way if the name is empty, or just contains whitespaces or if name is not given, name will be set as stranger.
Print the name in required format
Answer:
Hello there! :) It could be considered a portrait but that is not exactly what a portrait is.
Explanation:
A portrait is mostly considered a painting or drawing of someone that that same person has drawn. For example, a portrait of the Mona Lisa would have been her drawing/painting herself. Now someone just looking at camera lens would'nt exactly be true, it would be false so the answer is B. False
Hope this helps!
Answer:
c. This would reduce the number of tuples to involve in the join resulting in a more efficient query.
Explanation:
SQL or structured query language is a database querying language used to communicate or interact with databases. A database query could be as simple as returning all the columns from a database table to complex like joining several query results which in turn forms an algebra expression.
Every query statement or expression is executed with time, execution time needs to be minimized for efficiency, so, a well-arranged and reduced joining in the query improves the efficiency of the query.