Skip to main content

Posts

Showing posts with the label Java

Launch multiple programs with one shortcut in Windows Operating System

  Yes...!! you heard is right 😊and it’s possible with simple coded steps. When we’re getting into a Daily work, we’ve to deal with many Tools, Editors, Folders and Files. Opening of all these on daily basis is a tedious job πŸ˜–. In My Scenario, daily I’ve to open multiple chrome browsers, project folders, files and visual studio to continue my regular project tasks. To mitigate this, I am bringing up this article for you Just by writing simple coded steps in a Notepad/any editor to overcome this. Write below code in notepad and click on File->Save As -> Give your name followed by .bat  extension and click on OK button. Now your shortcut key is ready. Just double click it and have fun with it. Below is the code: @echo off :: Open folders start %USERPROFILE%\Documents\ start %USERPROFILE%\Desktop\Test\ :: Open files start "" "%USERPROFILE%\Desktop\DeskTop\SM\test.txt" ::Open browser start chrome.exe start " " https://www.freecodecamp.org/learn...

Type Conversion

  Operations in our applications will commonly involve multiple data types. Because of that, we must deal with type conversions. Now there are implicit type conversions, and those are type conversions that are performed automatically by the compiler. To see a simple example of that, we look at something like here we have an integer iVal that we've assigned the value 50. If I then say long lVal equals iVal, the compiler must convert that 32 ‑ bit integer iVal into a 64 ‑ bit integer as it's stored into lVal. And there are also explicit type conversions, and these are conversions that I explicitly perform in my code and I do that using a cast operator. We see here if I had that long lVal = 50 now, so I'm now assigning a 64 ‑ bit integer the value of 50, if I want to assign that into this iVal, a 32 ‑ bit integer, I have to explicitly cast it. I must tell part of that I want to go from that 64 ‑ bit integer into a 32 ‑ bit integer. And I do that by using the type I want to con...

What is Java?

The first thing we need to understand to get started is exactly what is Java? When someone says Java, what are they talking about? Well, Java is a programming language, but Java is also a runtime environment. It's both of those things. So, when we think about the programming language, it has things like the syntax, the data types, control flow, like looping and conditional statements and being object ‑ oriented, right, doing inheritance, and so forth. And then runtime, of course, must support those things, but it also provides things like configuration, security, a threading model, input/output, that sort of thing. So, when someone says Java, they could be referring to a programming language or the runtime environment or the whole thing. Now in general, the runtime environment someone is talking about when they just say Java is often referred to as Java Standard Edition. Right, that's kind of the basic Java environment. But it also provides other environments that derive from...