Why Java Is not a good Programming Language

preview_player
Показать описание
Why Java Is not a good Programming Language
|||||||||||||||||Affiliate-Links|||||||||||||||||
My Books:
Facebook:
Рекомендации по теме
Комментарии
Автор

The Filename has to be the same like the class name so: the class file of the class:

public class Test{
public static void main(String[] args){
System.out.println("Test");
}
}

have to be test because the class name is test

jeremyfunk
Автор

Thats because java have to find the file in wich the class is to run the code. If your classname is test and your filename hello the compiler have to use space in ram to save that. That need space and time especially if your program is realy really huge. That isnt more then one millisecond or something but in past it were a lot more. And it looks a lot nicer if the file and classnames are the same. I guess the Java-developer dont want to waste Time on a thing wich even denies learning a good programstyle.

jeremyfunk