Welcome!

From the Trenches of the Enterprise Software

Yakov Fain

Subscribe to Yakov Fain: eMailAlertsEmail Alerts
Get Yakov Fain via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Yakov Fain

JDJ's Enterprise Editor, Yakov Fain (pictured) writes: If you are planning to hit the job market,  you may need to refresh some of the Java basic terms and techniques to prepare yourself for a technical interview. Let me offer you some of the core Java questions that you might expect during the interviews.  For  most questions  I’ve provided only  short  answers to encourage further research.  I have included only  questions for mid (*) and senior level (**) Java developers. These sample questions could also become handy for people who need to interview Java developers (see also the article "Interviewing Enterprise Java Developers"). Disclaimer. This article has been originally published three or four years ago, hundreds of thousands Java developers have read it, but I still use some of these questions while interviewing Java developers. Guess what? Every other Jav... (more)

Java Basics: Lesson 11, Java Packages and Imports (Live Video Education)

Watch Yakov Fain Delivering This Class Live Java comes with thousands of classes that are organized in packages (similar to files and directories on you disk). Some packages include classes responsible for drawing, while other have classes for the Internet access, and so on. For example the class String is located in the package called java.lang, and the fully qualified name of this class is java.lang.String. The Java compiler only knows where to find classes that are located in the package java.lang, but there are many other packages with useful classes, and it's your responsibil... (more)

Your First Java Program

Getting Started The Java Development Kit (JDK) could be downloaded from the Sun Microsystems' Internet site at http://java.sun.com/j2se/1.4/ . The installation process is pretty simple - just run the downloaded executable file and it'll install it on your disk (the default directory for Java under Microsoft Windows is  c:\j2sdk1.4). To start writing a Java program you could use any plain text editor. In Windows, it could be an editor called Notepad. In UNIX, it could be the vi editor. The files with Java programs must be saved in a plain text format and must have names ending in... (more)

Java Streams Basics

Most of the programs work with external data stored either in local files or coming from other computers on the network. Java has a concept of working with so-called streams of data. After a physical data storage is mapped to a logical stream, a Java program reads data from this stream serially - byte after byte, character after character, etc. Some of the types of streams are byte streams (InputStream, OutputStream) and character streams (Reader and Writer). The same physical file could be read using different types of streams, for example, FileInputStream, or FileReader. Classe... (more)

Reading Data from the Internet

To read local file streams, a program has to specify the file's location, i.e. "c:\practice\training.html". The same procedure is valid for reading of the remote files: just open the stream over the network. Java has a class URL that will help you to connect to a remote computer on the Internet. At first, create an instance of the class URL: try{ URL xyz = new URL("http://www.xyz.com:80/training.html"); } catch(MalformedURLException e){ e.printStackTrace(); } The MalformedURLException could be thrown if a non-valid URL has been used, for example missed protocol if you forgot to sta... (more)