Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Java Important Questions for Semester

Java Important Questions for Semester

Folks,

You are reminded that last year more number of failures were in Java! So you are highly advised to understand and study the concepts as this will help you for your career and to crack down the Campus Interview. All the best.

2 Marks:

Define OOPS
What is Thread
What are abstract classes
What is the difference between finalize() and Garbage Collector
What is an Applet
Define AWT
What are the static data members
What is custom exception handling
What is the use of super keyword
What is synchronization
Define Encapsulation
What are literals
List down the data types in Java
How to create objects? Give an example
Define Method overloading
What do we declare a method or class abstract
Write a note on "this" keyword
Explain about static member
Explain the use of "final" keyword
Explain about "super" keyword
What do you mean by dead lock
What are the methods in Thread class
Write a note on "throw" keyword
Explain about paint()
What do you mean by a class
What is an object
What is JDK
What do you mean by JVM. Explain.

5 Marks:

Write about the features of Java
Write a Java program to illustrate the use of constructors
Write short notes on method overloading
Briefly explain about abstract class
Write about the method overriding with example
Explain briefly about the evolution of Java language
What is a constructor. Explain it with an example
Explain about the method overriding
Explain about the various in built exception handling classes
Explain about the util package
Explain about various access specifiers used in Java
What is AWT. Explain it with an example
Explain about static data members and static methods
Briefly explain about Interface
Briefly explain custom exception
Explain about InputStream and OutputStream classes
Explain about Reader and Writer classes
Explain the structure of a Java program
List out / what are the Characteristics of Java
Explain the various Java class libraries.

10 Marks:

Explain the  control statements with an example
Explain the concept of inheritance in Java with an example
Explain the features of Java
Explain about inheritance in detail with example
Explain the lifecycle of an applet with an example
What is a package. Explain it with example
Explain about various AWT classes used in Java
How to create and run Threads. Explain it with example.
Explain OOPS in detail.

Note:

1. The above listed questions are from the previous examinations.
2. The C.A.O. takes no responsibility if the above listed questions are not repeated.

-Chief Administrative Officer.

Java Tops The List

Folks,

It is not at all surprising me by any means that Java tops the most-demanding programming language in the world and the Java Programmers are highly paid as well.

Here is a Chart for you!


It ranks dozens of programming languages against 12 weighted data sources: Google search, Google trends, Github, Stack Overflow, Hacker News, Reddit, Career Builder, Dice, Topsy, and IEEE Xplore. In addition to the overall rank, you can view which languages are rapidly growing, are in high demand in the workplace, popular in social sites and open source hubs (e.g., GitHub and Stack Overflow), or your own custom weighting. You can also filter by language type: web, mobile, enterprise, or embedded.

Interestingly enough, Java tops the list for all of the rankings. To account for the weighting to be skewed by people needing help with the languages rather than actual popularity, IEEE Spectrum separated some sources to differentiate between queries that were asking questions versus resources for current coders.

Of course, there's much more to consider when choosing a language than just popularity (for first-time coders, Lifehacker readers voted for Python), but this is an interesting look at the current state of programming languages.


Platypus Man, A Professional Software Engineer says: "Speaking as a professional software engineer, the biggest skill isn't any one specific language, but the ability to pick up new languages easily and program well in any of them. If you want to learn a language for your own reasons, sure, go for it, but I wouldn't specifically go out and learn a language just because it's "in demand" and hope for the best."

To which Melanie Pinola, author of this article replies as: "I agree. But everyone has to start somewhere! and things like job demand and growth are important considerations for some."

They had a number of interesting findings. Here are my three big take-aways from their results:

Jobs requiring Java are the highest paying - The average salary for Java jobs across the US, Great Britain and Australia was about $84,000 (in U.S. dollars). The next highest paying jobs were those requiring Ruby/RoR, VBA and Objective-C, all close to what Java positions paid.

JavaScript is the language most in demand - Jobs looking for people skilled in JavaScript were, far-and-away, the most plentiful, mentioned in about 14% of the job listings. C# programmers were the next highest in demand (9%), followed by Java coders (8% of listings). As I wrote last week, JavaScript is the top programming language choice among startups, so this isn’t so surprising.

Jobs requiring niche languages are in lower demand and pay less - Clojure, Haskell, Lisp and Fortran ranked the lowest in terms of both demand and pay. As the authors pointed out, though these languages are popular among developers (e.g., Clojure and Haskell, for example, are popular on GitHub), “They don't however offer stable employment (yet).”

If you poke around MSGooroo you’ll find some other interesting salary/jobs data by programming language. The site presents a more detailed breakdown of pay and demand for different languages within the U.S., Great Britain and Australia. Within the U.S., for example, Java will increase your salary by about $9,300 a year, while having JavaScript on your resume will boost your pay by about $6,700 annually.


It’s well worth reading their full analysis, including nicely detailed disclosures on their methodology. Have at it!

Post Courtesy: 1, 2.

-Chief Administrative Officer.
Practical Programs and Notes

Practical Programs and Notes

Folks,

As promised, here is the Practical Programs (Front Sheet Available without Index page) for Java and VB and Notes for VB and Software Engineering.

Click the respective link to go the the direct download page.






-Chief Administrative Officer.
You might not know about Java

You might not know about Java

Folks,

What is Java?

Java is a simple, flexible (platform (operating system) independent) and class based programming language.

Though it is class based programming language it is also a WORA based programming language.

WORA means Write Once Run Anywhere programming language.

The best way to practise Java programs is to type them in any text editor and save the file using the extension ".java". For instance, File_Name.java

Before we compile the saved .java file, we need to install the JVM - Java Virtual Machine.

JVM is the only thing which makes java a special language. I.e., independent language.

As a computer understands only 1's and 0's, JVM converts every application wirtten or developed in Java in ByteCode which is nothing but the 1's and 0's which a computer understands.

Hence if you want to run the application developed using Java in your client machine than we need to install JVM in our client's machine.

Well, I hope that you are clear with JVM now.

And now we will learn how to compile our java program to ensure that our program is error free - syntax error or spelling.

Before we go for compliation, we need to install JDK - Java Development Kit in our machine. I.e., in which we are developing the application.

After installing JDK in our machine we need to ensure that our Command Prompt is able to identify the JDk installed.

To do so, open run and type "cmd" and click OK.

A dialog box will open, type in the textbox "cmd" to open the command prompt.

Type "javac" and type enter.

If it says that it is unable to identify the javac command on the machine than follow the following steps.

Right click on the My Computer / Computer and select "Properties".

There you can see "Advanced System Settings". Click on it.

A dialog box will open, select the "Advanced" tab under which you will find the "Environment Variables..." button, click on it.

There you will find 2 group boxes namely "User Variables for {YOUR_SYSTEM_COMPANY_NAME}" and "System Variables"

Under "System Variables" group box, select the Value of "Path".

And Add the your JDK path to it. Note: Do not delete the existing paths as it will stop the linked applications for running anymore.

Just add as ";" to the existing paths listed therein and add your JDK path into it and click OK.

My Path is "C:\Program Files\Java\jdk1.7.0_45\bin".

Now open the command prompt and type "javac" and check whether it is able to identify.

Now it should.

Well, after that, you complie your java program by going to the path in which you have saved you java file using the command prompt itself.

And now compile your Java program as "javac File_Name.java"

If there is error than debug it.

Note: After the successful compilation of the program, a file will get generate as you main class name.

Now you need to run the class file as "java Class_Name _To_Run".

It is not mandate that you save the file as the class name but it is highly adviced to do it to avoid confusion.

It is absolutely not like that only one file will generated after the successful compilation of the program but "n" number of files will get generated based on the "n" number of classes you have in your java program.

Well, Happy Coding :)

-Chief Administrative Officer.