Skip to main content

Java's File Name Constraint?

When I started learning Java, I learnt that it was required for the file containing the main class to be given the same name as that of the class itself. This not entirely true. One can name the file anything they want, as long as the public access modifier is not applied to it. The program will compile and run. I came to know about this when my friend +Aniket Mazumdar told me about it. I didn't believe him at first. But after doing some research, it seems that he was right. Shout out to him!

Comments

Popular Posts

Why I Started Blogging

It's been almost 5 years since I started blogging. This is the 30th post being published. That means over the course of 5 years, I've written 6 posts per year. Although 30 is much less than I would have liked, this is one of those pet projects I have continued even after the honeymoon phase. Today I want take some time and discuss why I started this blog in the first place. I was in my 3rd year of engineering studies when I started out. I had already developed a keen interest towards programming and tech in general by then. Having a blog seemed liked a cool idea. There were couple of more reasons to go ahead with this idea. That's what we are here to discuss today. Setting up a blog seemed like a technically challenging task. I wanted to know how to setup a blog with comments, advertisements and with a custom domain. It sounded like a great way to acquire new skills and learn new things along the way. Back then I didn't know anyone who shared my enthusiasm for tech

Dear edX!

Dear edX, I was in my 2nd year of college when you came to life. And I was ecstatic! No, not to be in college (LOL) but to have finally found my calling. Computer programming. I was browsing through all the resources I could find. Codecademy courses mainly. And right at that moment, you arrived. Your parents hail from the Harvard University and from the MIT. So of course you received my attention. Also, you had an unique selling point: free certificates. This was huge! No one else was doing it. It seemed you were actually trying to help students learn new skills and show off to the world. I was stoked to enroll into the course developed world's top professors. The free certificates were a big motivator to complete the courses. The first course I enrolled into was developed by The Linux Foundation. I have taken several courses since then. Some were on computer programming, some were about a country's history and some provided advice on career growth and personal finance. 2

It's Time India Gets Cashless Payment

India just had a mobile network revolution yesterday; thanks to Reliance Jio. It's time India gets another long-due technology i.e. mobile payment. There are many advantages of using mobile payment over cash or ATM cards. You are less likely to lose your phone - assuming you fiddle with your phone as much as I do. Even if you lose your phone, you can at least try to track it down using GPS. Your phone doesn't physically deteriorate over time. No need for mints. No wastage of paper. It's environment friendly. No maintenance needed unlike ATMs. More secure than ATM PIN codes. Mobile payment uses your fingerprints for verification. Mobile payment is much more convenient. Your employer transfers your salary to the bank and you can directly pay from your bank account. No need to withdraw the cash and hand it over to the merchant, who eventually does the reverse process after they received the money. Such waste of time. Instead just bring your phone or watch close to the

How to Automate NPS Contributions - A Step by Step Guide with Screenshots

Introduction The National Pension System is a great financial product for creating your retirement kitty. With contribution of just ₹5000 per month, you can accumulate more than a crore! I am a NPS subscriber (through NSDL eNPS) myself. If you have read my previous post  regarding EPF you know I like NPS for the following reasons. 60 year lock-in period Additional tax exemption under section 80CCD (1B) Choice of various assets classes Choice of pension fund managers Option to change your asset allocation or pension fund manager Low cost of fund management Transparency & organization structure Good customer support Online account opening and management Multiple exit options at retirement Screenshot from  Pension Calculator | NPS Trust Some Not So Great Things NPS is far from

Why Do We Still Pay for Voice Calls?

It's 2015. We have self-driving cars, mobile devices that rival laptops built 3 years ago, gigabit Internet connections and still, service providers make us pay for voice calling and SMS. That seems to be the dumbest thing to me. Let me explain... There are generally three things that you do on your phone, that needs to communicate with the network. First, there is voice calling, then there is SMS and lastly, there is web browsing and other stuff that requires an Internet connection. Now, put simply, Internet is all about sending data up and down, and if you think, SMS is also data. If we had a system, SMS can also be sent using the Internet. No I'm not talking about free SMS services here. Some of you might argue if we really need to have the SMS feature, but that's a different story. And then there is voice. VoIP anybody? That's been out there for ages! Why not route all the voice calls through the Internet? That's a question I'd like to ask the service