Computer level two java review, cramming before the exam

image-20220924185824484

database:

Selection operation refers to the condition where a = ?

The projection operation refers to specifying several attributes, that is, the selection attributes such as select a, b, xxx! ——>Easy to confuse with selection

image-20220924190123773

A natural join is union for columns and intersection for rows!

java is 16 bit unicode

image-20220924190246211

It is equivalent to shifting 1000 to the right by two places and becoming 0010, so it is 2!

image-20220924190358875

Input and output must be io stream

image-20220924190534686

image-20220924190644447

Values ​​of basic data types in java:

image-20220924190815476 image-20220924190913494

image-20220924192423689

In java, it is passed by value, which is a copy of the value, not the original variable! ! !

image-20220924192604356

image-20220924192709383

setLayout(new BorderLayout());

Container container = getContentPane();//The getContentPane() method in JFrame can generate a container object

JOptionPane.showMessageDialog( null, output, “abc”, JOptionPane.INFORMATION_MESSAGE );

Console input:

Scanner scan = new Scanner(System.in);
scan.nextInt();

image-20220924222322995

Guess you like

Origin blog.csdn.net/m0_58768224/article/details/130036609