Skip to main content

Hello World

Hello everybody whats up this is just for the test

Comments

Popular posts from this blog

Shahrukh khan At a Glance

Unbeaten king since twenty-two years: Shah Rukh Khan (“Naam toh suna hi hoga”) Through this article i am not emphasizing over my favorite actor. He is the legend that every-one of you must know about him. Figuratively Shahrukh khan is an actor, film producer and TV personality while speaking literally these words aren’t enough that describes khan. After reading this article anyone can figure out why i am approaching him so deeply.                                                                                                                   Shah Rukh Khan, informally referred to as SRK, is an Indian film actor. Often referred to as “The King of Bollywood”, Khan has acted in over 65 Hindi films.  In 2005, the Government of India honored him with the Padma Shri for his contributions towards Indian Cinema which is regarded as a very honorable award in India. Glancing on his study, he had graduated with a bachelor degree in economics. He had started his career with TV ser

Parsing xml file with JSOUP

Let say we have a xml formatted file as: snapshot of a stack-overflow data dump xml file as posts.xml Here is a sample program to extract title and tag from above xml file using jsoup library in java. Once importing  jsoup library  in our program, we can write program as: public class JsoupParser { public static void main(String[] args) throws Exception { String question; String tag; File fileQuestion = new File( "F: \\ Data \\ stackoverflow.com-Posts \\ posts.xml" ); Document docQuestion = Jsoup. parse (fileQuestion, "UTF-8" ); Elements eachrowQuestion = docQuestion.getElementsByTag( "row" ); for ( int i = 0 ; i < eachrowQuestion.size(); i++) { question= eachrowQuestion.get(i).attr( "Title" ); tag=eachrowQuestion.get(i).attr( "Tags" ); System.out.println(question+ "---->" + tag); } } } Now we can

Java Basics Overview

How Java is Different from others ?? Unlike other programming language java is compiled and interpreted language. Java IDE acts as a compiler and JVM java virtual machine behave like an interpreter. i.e. when any program let say Hello saved after compiling is in Hello.java extension and after compiling this file we get Hello.Class extension file is called as class-file, byte-code or intermediate code. Byte-code is not dependent for any specific machine so it is also called as intermediate code. To convert this byte-code into machine code or machine understandable format JVM is used which is different for different operating system. JVM is actually a kind of software used for interpreting purpose hence it is called virtual machine. In Java Programming language, why every program is written inside class?            As we Know Java is an Object Oriented programming language so every type of the problem is solved with the representation of the object. And as we als