About learning programming and LinkedIn programming assessments...

@Arthran You are not quite correct about the school. I didn't say we have never used the static type. We actually did since like the very first class and we have used them in many semesters. I have specifically said that they weren't ever defined and we weren't taught when to use them. And the other 2 Java things I have mentioned we weren't taught at all. Those must be the more advanced things. Can you tell me what the book was? Maybe I should get it. The Java books that I have are Building Java Programs by Marty Stepp and Stuart Reges and Data Structures and Algorithms in Java 6th Edition. They don't talk about those concepts.

Here are some the Java concepts that my classes have taught me: OOP programming, interfaces, inheritance, interfaces, polymorphism, namespaces, time complexities, certain libraries like action event/action listeners and awt, sets, maps, arrays, arraylists, constructors and destructors, hashmaps/treemaps, the 3 ways to loop, the anonymous type, and more. I did learn a lot but it wasn't enough for LinkedIn.

I just now retook a C# LinkedIn test and did rather poorly there. It has things I have never learned like the where keyword, the from keyword, and what is a weak reference. How can I learn such things when the books and the classes don't teach such things? How about an online course like at Udemy? Those work well for me generally.
Wait, so they just told you to put "static" in various places in your code for many semesters and not once did anyone think to ask for an explanation of why you were doing it?
Wait, so they just told you to put "static" in various places in your code for many semesters and not once did anyone think to ask for an explanation of why you were doing it?
This is probably because the first semester, they've been taught "procedural programming" because it is the easiest way to get started. In advanced programming courses, they learn about classes, inheritance, OOP, and encapsulation. But once that happens, they probably already have a habit to use the "static" keyword because "this is probably the way it is". If they started asking, they would ask "why shouldn't we use the static keyword?".
Can you tell me what the book was? Maybe I should get it.
My book is called Java SE 8 For Programmers (Third Edition) -- by Paul Deitel and Harvey Deitel. I recall it being a pretty good book for the $27.49 that I paid for it. However, I haven't messed with Java in about a decade, so I don't know how relevant the book still is. Java is up to version 19 now, so I have no clue if a Java 8 book is still worth reading anymore.

The Java books that I have are Building Java Programs by Marty Stepp and Stuart Reges and Data Structures and Algorithms in Java 6th Edition. They don't talk about those concepts.
Actually, Building Java Programs by Marty Stepp and Stuart Reges does cover those topics:
Code:
Chapter 1.4 Static Methods
Chapter 9.5 Abstract Methods
Chapter 9.6 Abstract Classes
Chapter 19.2 Lambda Expressions

At least, those are the applicable chapters for the 5th edition. If you have an older edition, the chapter numbers might be a bit different, but they should still be in there somewhere.

Those must be the more advanced things.
I don't know if this is still the case, but lambdas *were* treated as an advanced topic back when I last messed with Java. But this wasn't because they're difficult to use or anything like that--it's because they were new. They weren't introduced into Java until Java 8. Now that they've been around for a while, and functional programming is a lot more prevalent, Java books might talk about them earlier nowadays... but I don't know, since I haven't messed with Java in so long.

Static methods and abstract classes are not generally considered advanced topics, as you usually learn about them pretty early in the process of learning about OOP. They are concepts that exist in almost every object oriented programming language. You usually learn about static methods around the same time that you learn about regular methods, though your book actually explains them absurdly early (probably too early for readers to have enough context to actually understand). And you usually learn about abstract classes when you learn about polymorphism.

I'll go ahead and give you a quick explanation of these things, in case you're interested:
Spoiler: Static
If a method is declared with the static keyword, then you can call it without having to instantiate an object of the class. You can call them directly using the name of the class, i.e. ClassName.methodName(arguments). For example, all the methods in the Math class are static methods, so if you want to output the square root of 900, you can do it like this:
Java:
System.out.println(Math.sqrt(900.0));

If it wasn't a static method, you would have to actually instantiate an object of the Math class first before you could call the method. Something like this:
Java:
Math myMathObject = new Math();
System.out.println(myMathObject.sqrt(900.0));

The second way would be less efficient, both in terms of programmer productivity, and in terms of performance and memory usage. And since a square root function has no need to be instanced, it makes more sense to declare it as a static method.

You'll find that almost every OOP language (including C#) has the concept of static methods, and many even use that exact same static keyword, though some languages call them "class methods" instead.

You can also declare static variables. For example, Math.PI is a static constant of the Math class. Static variables also have a different usage, in that they allow you to create a variable that is shared by all objects of a particular class, but I don't think that's something that you would do too often.

Spoiler: Abstract
An abstract class is a class that is created solely to be the parent of other classes. In other words, you will never instantiate an object of that class--it is instead used as a base for other classes to inherit from. The purpose of this is to declare/define methods and properties that will be common to all of the children classes, often for the sake of polymorphism.

Although it's not Java, you can find some good conceptual examples of abstract classes in RPG Maker's core scripts. For example: Window_Base, Window_Scrollable, Window_Selectable, Window_Command, and Window_HorzCommand all demonstrate the concept of an abstract class. You will never instantiate those classes directly. Instead, you create you own class, which extends one of those classes, and instantiate it. They simply provide some of the base functionality that your window will need. JavaScript doesn't actually have an abstract keyword, but the concept is the same.

When you use the abstract keyword (when declaring a class) it lets other programmers know that it's an abstract class, and it also tells the compiler to throw an error if somebody tries to instantiate an object of that class. It's not strictly necessary to use the abstract keyword in order to use the concept of an abstract class, but doing so is a good practice, since it adds in a layer of protection to prevent unforeseen errors.

There is also something known as an abstract method. When you declare a method with the abstract keyword, it means that every child class must implement that method. This is pretty much always going to be for the sake of polymorphism. There are times when you need every child of a class to have a specific method, but the implementation of that method will be different for each child... in that situation, you can declare it as an abstract method in the parent class, so that each child class is forced to implement their own version of it.

An example usage: suppose I've got an abstract class named Shape. And I want to make some children classes (i.e. Circle, Triangle, Rectangle, etc), and I want each of those children to have a method named draw, which will draw that shape. Since each shape is drawn differently, I can't really implement the draw method in the Shape class, so I would just declare it as an abstract method, so that each of the children will be forced to implement their own version of the draw method.

As is the case with abstract classes, it's not strictly necessary to use the abstract keyword in order to use the concept of an abstract method. However, it's a good practice because it lets other programmers know what's going on, and it causes the compiler to enforce the concept.

Spoiler: Lambda
Since you mentioned that you know JavaScript, you've actually probably seen lambdas countless times... you just didn't know them by that name. An arrow function in JavaScript is the same thing as a lambda in Java. The only difference is that in Java, you type the arrow a little differently. Here is a lambda:
Java:
numbers.forEach(n -> System.out.println(n));
The n -> System.out.println(n) part is a lambda.
Lamba = a function/method, but you write it using an arrow.

Standard method/function.
Code:
public static void printThis(string text) {
  System.out.println(text)
}

Lambda
Code:
text -> System.out.println(text)
@Arthran I have looked at my book, Building Java Programs Second Edition. I see that it is a great book that covers all 3 levels of Java that I took. But I have read it only in my jr. college and only partially. Here is what I have seen about these 3 things:

Abstract methods- yes it covers them!! It explains them well.
Static methods- it covers them only a little bit. It doesn't define them or tell when to use them. It only like says to only use them in this book.
Anonymous/lambda methods/functions- it doesn't cover them at all! IDK why as this book covers even the sorts and time complexities. But maybe they didn't come out when this book was out? I've Googled it and it seems that this book that I have came out in 2010 while lambda functions came out in 2014. I guess this book covers just about everything of the Java programming language up till then in 2010. What do you guys think?
@Arthran I have looked at my book, Building Java Programs Second Edition. I see that it is a great book that covers all 3 levels of Java that I took. But I have read it only in my jr. college and only partially. Here is what I have seen about these 3 things:

Abstract methods- yes it covers them!! It explains them well.
Static methods- it covers them only a little bit. It doesn't define them or tell when to use them. It only like says to only use them in this book.
Anonymous/lambda methods/functions- it doesn't cover them at all! IDK why as this book covers even the sorts and time complexities. But maybe they didn't come out when this book was out? I've Googled it and it seems that this book that I have came out in 2010 while lambda functions came out in 2014. I guess this book covers just about everything of the Java programming language up till then in 2010. What do you guys think?
That means that your book is probably based on Java 6, which is way too old. If you're serious about learning Java, you should maybe get a different book.
If it is required, then you should.

I encountered a lot of things I didn't know when I started to jump into the IT industry. They didn't cover it in the textbook and courses because frankly, it would take too much time, and one or two semesters probably not enough.

Also, technology advances fast. Education is not. It would be hard to keep up with the current tech. So you have to have the ability to learn fast. It is a required skill in the IT industry. Or you are out of the league.
Reading the thread, this sums it up 😀
Technology advances fast, but education is not furious enough. 😛
Honestly I wouldn't rely on test results so much. Try to get involved in some actual coding, an entry level coding job, a job with some coding involvement, or an open source group.

A lot of those things you mentioned are buzzwords, this is stuf that's taught more than it's used. You should see some of the code I've had to deal with over the years. These things really don't reflect the real world.

I was a full time developer for around a decade and a half, before I decided enough was enough. I still have to program yet, but it's not 100% of my time.
I'm currently working in two teams, one using C# and one using COBOL... yes, frekkin COBAL! It's not all OOP, interfaces, inheritance, interfaces, polymorphism, namespaces and all that... 'stuff' in real life.
A LinkedIn skill assessment score depends on the answers of others. It's not like a Java certification which certifies a minimum knowledge. If a majority of people taking the skill assessments are good Java programmers, then you likely need to get many correct to get a high score. If there are a lot not-so skilled programmers then you likely need to get fewer answers right to get a high score.

Another perspective to consider is the focus of your Java courses. Was the purpose for you to learning programming through Java as the medium or was it for you to become a Java expert. Many programming courses focus on giving you a foundation so you later can learn the specifics and quirks when working on a specific project. Compare that to LinkedIn trying to differentiate people through the skill assessment.

Just took the Eclipse (Java IDE) skill assessment. Some questions were about the menu path to accomplish something. Not something that actually matter in practice but it does allow some differentiating. (In practice the menu path is irrelevant since you use key shortcuts for common tasks)
The results of the skill assessments does not really imply anything about the quality of your Java courses.

Having taken a couple of skill assessments it seems they like to include questions about quirks of the subject matter. Could for example be a question about the behaviour of a predefined annotation.
Just failed a skill assessment. You can retake the skill assessment in 6 months. Assuming you want to take on the skill assessment again I recommend that you read the language specification: https://docs.oracle.com/javase/specs/jls/se19/html/index.html
Create a sandbox project where you test out the various features and see how they work.

My book is called Java SE 8 For Programmers (Third Edition) -- by Paul Deitel and Harvey Deitel. I recall it being a pretty good book for the $27.49 that I paid for it. However, I haven't messed with Java in about a decade, so I don't know how relevant the book still is. Java is up to version 19 now, so I have no clue if a Java 8 book is still worth reading anymore.
Java 8 is still relevant. My previous workplace continues to use Java 8. It is the last version released before Oracle went full Oracle.

*hugs*
- Zeriab

Original thread: https://forums.rpgmakerweb.com/threads/about-learning-programming-and-linkedin-programming-assessments.154145/