How to prepare for Java evaluation from the point of view of a C # programmer?

I was offered to give up computer science classes in college, as the teacher noticed that I obviously knew an introduction to coding. I am very fluent in C # and most programming concepts, so the exam should not be so complicated. I can also code in other languages ​​such as C ++, C, Lua, PHP, VB, etc.

I don’t care about the transfer or not, but I believe that this exam will be my only class for this period. Therefore, I want everything to be right.

Suppose I have ~ 2 weeks to prepare, I would like to know where to start. I clearly do not need to learn any concept (that is, what a variable is, how to use classes, what is inheritance, etc.), since they are the same in most languages ​​(or in this case C # and Java).

I suppose that I need to get acquainted with small syntax changes (line -> String, bool -> boolean) and system differences (for example, a scanner for input, import and use).

I found the following page for most syntax changes:

http://it.toolbox.com/blogs/codesharp/java-for-c-developers-21248

From what I know, the test will be variables and values, basic operators, logical structures (i.e. if / else, for, while), functions and structures. As far as I remember, classes did not see this term.

, S/O. !

+3
7

, . POO java , , , , .

, , , java. .


:

+4

, getters/setters Java #. # , , , .

Public string ExampleString { get; set; }

Java .

private string _exampleString;

public string getExampleString()
{
    return _exampleString;
}

public void setExampleString(string exampleString)
{
    _exampleString = exampleString;
}

, # , Java. , , . , / Java UI, , . , Java .

+2

Java? , , , "" java, IE , .

+1

Java, - , #, SO, - . , .

0

, Project Euler, .

- , , .

0

eclipse netbeans , , , . Java , , .

, . "String" strObject. (Ctrl-space), , . , .

, JDK - Java, , Java.

, Java . , , , .

( ), , , , public/protected/private/package ( ).

0

, Eclipse.

NB: Generics - Java. , "" , , .

0

Source: https://habr.com/ru/post/1762350/


All Articles